瀏覽代碼

add ansible dir

pull/1/head
10sr 10 年之前
父節點
當前提交
3752ccf0ba
共有 3 個檔案被更改,包括 16 行新增0 行删除
  1. +12
    -0
      ansible/ansible.yml
  2. +1
    -0
      ansible/hosts
  3. +3
    -0
      ansible/run.sh

+ 12
- 0
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

+ 1
- 0
ansible/hosts 查看文件

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

+ 3
- 0
ansible/run.sh 查看文件

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

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

Loading…
取消
儲存