Browse Source

add ansible dir

pull/1/head
10sr 10 years ago
parent
commit
3752ccf0ba
3 changed files with 16 additions and 0 deletions
  1. +12
    -0
      ansible/ansible.yml
  2. +1
    -0
      ansible/hosts
  3. +3
    -0
      ansible/run.sh

+ 12
- 0
ansible/ansible.yml View File

@@ -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

+ 1
- 0
ansible/hosts View File

@@ -0,0 +1 @@
127.0.0.1 ansible_connection=local ansible_python_interpreter=/usr/bin/python2 package_manager=pacman

+ 3
- 0
ansible/run.sh View File

@@ -0,0 +1,3 @@
#!/bin/sh

ansible-playbook -i hosts ansible.yml --ask-sudo-pass

Loading…
Cancel
Save