Ansible local_action directive

后端 未结 2 995
清酒与你
清酒与你 2021-02-19 02:12

I\'m quite new to Ansible and have a simple question for my understanding of local_action directive.

Would that mean that the command is fully executed loca

2条回答
  •  太阳男子
    2021-02-19 03:05

    If you want to provide multiple parameters to the local action it will look something like this

    local_action: 
      module: command
      _raw_params: "which nginx"
    register: check_nginx
    failed_when: no
    changed_when: no
    

提交回复
热议问题