From 3752ccf0ba4c2fdd5440a121f275a166df432a8d Mon Sep 17 00:00:00 2001 From: 10sr <8slashes+git@gmail.com> Date: Mon, 7 Jul 2014 20:12:53 +0900 Subject: [PATCH] add ansible dir --- ansible/ansible.yml | 12 ++++++++++++ ansible/hosts | 1 + ansible/run.sh | 3 +++ 3 files changed, 16 insertions(+) create mode 100644 ansible/ansible.yml create mode 100644 ansible/hosts create mode 100755 ansible/run.sh 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