Run command on the Ansible host

后端 未结 8 1286
小鲜肉
小鲜肉 2020-12-22 14:45

Is it possible to run commands on the Ansible host?

My scenario is that I want to take a checkout from a git server that is hosted internally (and isn\'t accessible

8条回答
  •  时光取名叫无心
    2020-12-22 15:29

    you can try this way

    • git: repo: 'https://foosball.example.org/path/to/repo.git' dest: /srv/checkout version: release-0.2 delegate_to: localhost
    • name: perform some command next yum: name=ntp state=latest

提交回复
热议问题