wtorek, 21 czerwca 2016

Ansible playbook for ubuntu "clients" server

ansible-playbook ubuntu.yml -v --user=marek --extra-vars "ansible_sudo_pass=<your_password>"


[root@centos ansible]# cat ubuntu.yml
---
- name: Hello Ansible - quick start
  hosts: ubuntu
  user: marek
  sudo: yes

  tasks:
    - name: Hello server
      shell: date >> now.txt

Brak komentarzy:

Prześlij komentarz