A collection of minimalist Ansible playbooks for automating server setups
*the Initial Server Setup should be your starting point for fresh servers.
Ansible >= 2.11.5 required
From your local machine or Ansible control node, run:
# Test with password and login
ansible all -m ping -u remote_user
# Test with ssk key
ansible all -m ping \
-u root \
--key-file=~/.ssh/id_rsa
If you're able to get a "pong" reply back from your node(s), your setup works as expected and you'll be able to run both ad-hoc commands and playbooks on your nodes, using Ansible.
$git clone [email protected]:onovaes/ansible-playbooks.git
cd ansible-playbooks
$cp initial_setup_ubuntu2004/vars/example-default.yml initial_setup_ubuntu2004/vars/default.yml
# RUN as root
$ansible-playbook initial_setup_ubuntu2004/playbook.yml -u root
# RUN as otheruser with only called "dev" hosts group
$ansible-playbook initial_setup_ubuntu2004/playbook.yml -u otheruser -l dev --check --diff
[] Tirar inventario do playbook, pois devo passar como parametro no docker [] validando instlaco do dockers [] Acredito que não estava fazendo o upgrade inicial automatico