Skip to content

Commit

Permalink
feat: centos support
Browse files Browse the repository at this point in the history
  • Loading branch information
popstas committed Jun 19, 2017
1 parent 9403057 commit 93deeee
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 1 deletion.
5 changes: 5 additions & 0 deletions molecule.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,11 @@ docker:
image_version: 16.04
volume_mounts:
- ${MOLECULE_APTPROXY_PATH}:/etc/apt/apt.conf.d/00aptproxy
- name: ansible-role-server-scripts-centos-7
image: centos
image_version: 7
volume_mounts:
- ${MOLECULE_APTPROXY_PATH}:/etc/apt/apt.conf.d/00aptproxy

ansible:
playbook: tests/playbook.yml
13 changes: 12 additions & 1 deletion tasks/main.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,23 @@
---

- name: Ensure cron and git installed
- name: Ensure cron and git installed (Debian)
apt:
name: "{{ item }}"
state: present
with_items:
- cron
- git
when: ansible_os_family == 'Debian'
tags: [ server-scripts, install ]

- name: Ensure cron and git installed (RedHat)
package:
name: "{{ item }}"
state: present
with_items:
- crontabs
- git
when: ansible_os_family == 'RedHat'
tags: [ server-scripts, install ]

- name: Sync server-scripts
Expand Down

0 comments on commit 93deeee

Please sign in to comment.