diff --git a/ansible/ansible.yml b/ansible/ansible.yml new file mode 100644 index 0000000..7ef707e --- /dev/null +++ b/ansible/ansible.yml @@ -0,0 +1,12 @@ +--- +- hosts: all + sudo: yes + tasks: + - name: Install packages + action: pacman pkg={{ item }} state=installed + with_items: + - rsync + - git + # handlers: + # - name: restart ntpd + # action: service name=ntpd state=restarted diff --git a/ansible/hosts b/ansible/hosts new file mode 100644 index 0000000..244787b --- /dev/null +++ b/ansible/hosts @@ -0,0 +1 @@ +127.0.0.1 ansible_connection=local ansible_python_interpreter=/usr/bin/python2 package_manager=pacman diff --git a/ansible/run.sh b/ansible/run.sh new file mode 100755 index 0000000..d283384 --- /dev/null +++ b/ansible/run.sh @@ -0,0 +1,3 @@ +#!/bin/sh + +ansible-playbook -i hosts ansible.yml --ask-sudo-pass