Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  • make essential files
    • inventory

      Code Block
      [local] 
      localhost ansible_connection = local
    • playbook

      Code Block
      ---
      - name: Hello Ansible - quick start
        hosts: all
      
        tasks:
          - name: add current date to now.txt file
            shell: date >> now.txt 
  • run ansible-playbook

    Code Block
    ansible-playbook playbook.yml --inventory inventory --user `whoami`
    # or in short format:
    ansible-playbook playbook.yml -i inventory -u `whoami`