Ansible: Can I execute role from command line?

前端 未结 7 832
陌清茗
陌清茗 2020-12-07 14:22

Suppose I have a role called \"apache\"

Now I want to execute that role on host 192.168.0.10 from the command line from Ansible host

ansible-playbook         


        
7条回答
  •  旧巷少年郎
    2020-12-07 15:01

    You could also check ansible-toolbox repository. It will allow you to use something like

    ansible-role --host 192.168.0.10 --gather --user centos --become my-role
    

提交回复
热议问题