Commit 465b5396 authored by Tomáš Stefan's avatar Tomáš Stefan

Few corrections from run on another set of machines

parent 22210913
......@@ -19,5 +19,10 @@
with_items:
- "{{ athena_releases }}"
- name: Install createrepo
yum:
name: createrepo
state: present
- name: Create a local repository from downloaded RPMs
command: "createrepo {{ working_dir }}/athena_local_repository"
......@@ -16,7 +16,7 @@
- name: Create a symlink to librpm.so.3
file:
src: /usr/lib64/librpm.so.1
dest: /usr/lib64/librpm.so.3
src: /usr/lib64/librpm.so.3
dest: /usr/lib64/librpm.so.1
state: link
when: librpm_so_1.stat.exists == False
......@@ -2,7 +2,7 @@
command: cvmfs_server
register: cvmfs_server
failed_when: False
changed_when: cvmfs_server.stdout.find(cvmfs_version_check_text) == -1
changed_when: (cvmfs_server.stdout is undefined) or (cvmfs_server.stdout.find(cvmfs_version_check_text) == -1)
- name: Install cvmfs_server
block:
......@@ -48,10 +48,14 @@
chdir: "{{ working_dir }}/cvmfs/build"
target: install
- name: Populate service facts
service_facts:
- name: Make sure AutoFS is stopped
service:
name: autofs
state: stopped
when: "'autofs' in ansible_facts.services"
- name: Edit /etc/cvmfs/default.local
lineinfile:
......@@ -60,4 +64,4 @@
line: 'CVMFS_HTTP_PROXY=DIRECT'
create: yes
when: cvmfs_server.stdout.find(cvmfs_version_check_text) == -1
when: (cvmfs_server.stdout is undefined) or (cvmfs_server.stdout.find(cvmfs_version_check_text) == -1)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment