Need to run only once to eliminate access under root account.
make setup
make provision
ansible-vault encrypt_string 'secret' --name 'db_password'
- name: Execute a command
apt:
name: "nano1"
debugger: on_failed
tags: test
- shell: /usr/bin/uptime
register: result
- debug:
var: result
- debug:
msg:
- What is this?
- System {{ inventory_hostname }} has gateway {{ ansible_default_ipv4.gateway }}
ansible-playbook -i inventory.ini site.yml -v
ansible-playbook -i inventory.ini site.yml -vv
ansible-playbook -i inventory.ini site.yml -vvv
ansible-playbook -i inventory.ini site.yml -vvvv
ansible-playbook -i inventory.ini site.yml --start-at-task="install packages"
ansible-playbook -i inventory.ini site.yml --step
Follow prompts, or cancel execution via Ctrl+C.