--- - hosts: "{{ hosts }}" remote_user: "{{ user }}" gather_facts: true become: yes become_user: root become_method: sudo tasks: - name: git pull git: repo: 'https://gituser:gitpasswd@github.com/git/git.git' dest: /data/servers/webapps update: yes force: no version: master
|