This website works better with JavaScript.
Home
Explore
Help
Sign In
10sr
/
dotfiles-mirror
mirror of
https://github.com/10sr/dotfiles.git
Watch
1
Star
0
Fork
0
Code
Issues
0
Releases
0
Wiki
Activity
Browse Source
ansible: use vars
pull/1/head
10sr
10 years ago
parent
3752ccf0ba
commit
3972489264
2 changed files
with
5 additions
and
4 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+4
-3
ansible/ansible.yml
+1
-1
ansible/hosts
+ 4
- 3
ansible/ansible.yml
View File
@@ -1,12 +1,13 @@
---
- hosts: all
sudo: yes
vars:
packages: [rsync, git]
tasks:
- name: Install packages
action: pacman pkg={{ item }} state=installed
with_items:
- rsync
- git
with_items: packages
when: ansible_os_family == "Archlinux"
# handlers:
# - name: restart ntpd
# action: service name=ntpd state=restarted
+ 1
- 1
ansible/hosts
View File
@@ -1 +1 @@
127.0.0.1
ansible_connection=local ansible_python_interpreter=/usr/bin/python2 package_manager=pacman
localhost
ansible_connection=local ansible_python_interpreter=/usr/bin/python2 package_manager=pacman
Write
Preview
Loading…
Cancel
Save