ansible-pull's Examples

Pull and run playbook from git repo.

ansible-pull -U https://github.com/example/repo.git

Pull and run specific playbook.

ansible-pull -U https://github.com/example/repo.git playbook.yml

Specify inventory (e.g., localhost only).

ansible-pull -U https://github.com/example/repo.git -i localhost,

Specify checkout directory.

ansible-pull -U https://github.com/example/repo.git -d /tmp/checkout

Checkout a specific branch.

ansible-pull -U https://github.com/example/repo.git -C dev

Pass extra variables.

ansible-pull -U https://github.com/example/repo.git -e "var=value"

Auto-accept git SSH keys.

ansible-pull -U https://github.com/example/repo.git --accept-host-key

Verbose mode.

ansible-pull -U https://github.com/example/repo.git -v

DevOpsSchool
Typically replies within an hour

DevOpsSchool
Hi there 👋

How can I help you?
×
Chat with Us