본문 바로가기

리눅스

[iac][ansible] ansible-galaxy 명령

728x90

ansible-galaxy 명령

 

ansible-galaxy : https://galaxy.ansible.com/

 

 

$ ansible-galaxyu
sage: ansible-galaxy [-h] [--version] [-v] TYPE ...
ansible-galaxy: error: the following arguments are required: TYPE

usage: ansible-galaxy [-h] [--version] [-v] TYPE ...

Perform various Role and Collection related operations.

positional arguments:
  TYPE
    collection   Manage an Ansible Galaxy collection.
    role         Manage an Ansible Galaxy role.

options:
  --version      show program's version number, config file location, configured module search path, module location, executable location and exit
  -h, --help     show this help message and exit
  -v, --verbose  Causes Ansible to print more debug messages. Adding multiple -v will increase the verbosity, the builtin plugins currently evaluate up to -vvvvvv. A reasonable level to
                 start is -vvv, connection debugging might require -vvvv.

 

ansible-galaxy role search nginx

 

ansible-galaxy collection install nginxinc.nginx_controller
728x90