Ansible - studiofu/brain GitHub Wiki

Quick Start

hosts flie

[all:vars]
ansible_connection = ssh
[test]
test1 ansible_host=remote_host ansible_user=remote_user ansible_private_key_file=/var/jenkins_home/ansible/remote-key

ansible -i hosts -m ping test1

playbook

play.yml

- hosts: test1
  tasks:
    - shell: echo Hello World > /tmp/ansible-file