1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-07-01 06:35:23 +02:00
tldr/pages.de/common/ansible-pull.md
2025-06-04 22:48:01 +05:30

20 lines
926 B
Markdown

# 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:
`ansible-pull {{[-U|--url]}} {{repository_url}}`
- Laden eines Playbooks aus einem VCS und ausführen eines spezifischen Playbooks:
`ansible-pull {{[-U|--url]}} {{repository_url}} {{playbook}}`
- Laden eines Playbooks aus einem VCS unter angabe eines bestimmten branches und ausführen eines spezifischen Playbooks:
`ansible-pull {{[-U|--url]}} {{repository_url}} {{[-C|--checkout]}} {{branch}} {{playbook}}`
- Laden eines Playbooks aus einem VCS und ausführen eines spezifischen Playbooks unter angabe einer Hosts-Datei:
`ansible-pull {{[-U|--url]}} {{repository_url}} {{[-i|--inventory]}} {{hosts_datei}} {{playbook}}`