Linux/Ansible

Aus Wiki
Wechseln zu: Navigation, Suche
Other articles

Install

sudo apt-get install -y software-properties-common
sudo add-apt-repository -y ppa:ansible/ansible
sudo apt-get update
sudo apt-get install -y ansible  


Commands

ansible --version
ansible-playbook pb-machinex.yml
ansible hostname -m setup    # variables for "hostname"


Step-by-step

  1. Configure SSH Key access (->Linux/SSH)
    ssh-copy-id -i ~/.ssh/id_rsa user@server
  2. Setup file structure
  3. Run ansible playbook
    ansible-playbook



Links