25 lines
568 B
Plaintext
25 lines
568 B
Plaintext
# Commands
|
|
|
|
## Playbook
|
|
|
|
### tags
|
|
|
|
`ansible-playbook -b test.yml --vault-password-file password --tags rust`
|
|
`ansible-playbook -b test.yml --vault-password-file password --tags "setup,terraform"`
|
|
|
|
### run on Ubuntu in a venv
|
|
|
|
`ansible-playbook -b provision.yml --vault-pass-file=password -e ansible_python_interpreter=/usr/bin/python`
|
|
|
|
## Galaxy
|
|
|
|
### install requirements
|
|
|
|
`ansible-galaxy install -r requirements.yml`
|
|
|
|
## Vault
|
|
|
|
### Encrypt
|
|
|
|
`ansible-vault encrypt_string 'email-smtp.eu-west-1.amazonaws.com' --name 'vault_smtp_hostname' --vault-pass-file ./password`
|