From c3707ce75c6e52e334221484218816cb21804f2c Mon Sep 17 00:00:00 2001 From: Tim Flink Date: Mon, 17 Mar 2014 21:58:04 +0000 Subject: [PATCH] fixing httpd group for kickstart serving dir and moving httpd package installation to a more appropriate place --- playbooks/groups/lockbox.yml | 7 ++++++- roles/ansible-server/tasks/main.yml | 1 - 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/playbooks/groups/lockbox.yml b/playbooks/groups/lockbox.yml index ced49a6175..9ee2ee34e9 100644 --- a/playbooks/groups/lockbox.yml +++ b/playbooks/groups/lockbox.yml @@ -54,6 +54,11 @@ - /srv/web/infra/ansible/vars/{{ ansible_distribution }}.yml tasks: + - name: install needed packages + yum: pkg={{ item }} state=installed + with_items: + - httpd + - name: create directories for local git repos file: path=/srv/git/{{ item.path }} state=directory owner=root group=root mode=1775 with_items: "{{ gitrepos }}" @@ -66,4 +71,4 @@ file: path=/srv/ansible state=directory owner=root group=root mode=1775 - name: create directory for serving kickstarts - file: path=/var/www/html/ks state=directory owner=httpd group=httpd mode=1755 + file: path=/var/www/html/ks state=directory owner=apache group=apache mode=1755 diff --git a/roles/ansible-server/tasks/main.yml b/roles/ansible-server/tasks/main.yml index 75fd264c65..b9c778bed3 100644 --- a/roles/ansible-server/tasks/main.yml +++ b/roles/ansible-server/tasks/main.yml @@ -7,7 +7,6 @@ with_items: - ansible - git - - httpd tags: - packages