2025-03-14 21:59:59 -06:00
|
|
|
# ansible-pull
|
|
|
|
|
|
|
|
|
|
> Laden eines Ansible-Playbooks aus einem VCS-Repository und ausführen auf dem lokalen Host.
|
|
|
|
|
> Weitere Informationen: <https://docs.ansible.com/ansible/latest/cli/ansible-pull.html>.
|
|
|
|
|
|
|
|
|
|
- Laden eines Playbooks aus einem VCS und ausführen des standardmässigen local.yml Playbooks:
|
|
|
|
|
|
2025-07-24 22:27:13 -06:00
|
|
|
`ansible-pull {{[-U|--url]}} {{repository_url}}`
|
2025-03-14 21:59:59 -06:00
|
|
|
|
|
|
|
|
- Laden eines Playbooks aus einem VCS und ausführen eines spezifischen Playbooks:
|
|
|
|
|
|
2025-07-24 22:27:13 -06:00
|
|
|
`ansible-pull {{[-U|--url]}} {{repository_url}} {{playbook}}`
|
2025-03-14 21:59:59 -06:00
|
|
|
|
|
|
|
|
- Laden eines Playbooks aus einem VCS unter angabe eines bestimmten branches und ausführen eines spezifischen Playbooks:
|
|
|
|
|
|
2025-07-24 22:27:13 -06:00
|
|
|
`ansible-pull {{[-U|--url]}} {{repository_url}} {{[-C|--checkout]}} {{branch}} {{playbook}}`
|
2025-03-14 21:59:59 -06:00
|
|
|
|
|
|
|
|
- Laden eines Playbooks aus einem VCS und ausführen eines spezifischen Playbooks unter angabe einer Hosts-Datei:
|
|
|
|
|
|
2025-07-24 22:27:13 -06:00
|
|
|
`ansible-pull {{[-U|--url]}} {{repository_url}} {{[-i|--inventory]}} {{hosts_datei}} {{playbook}}`
|