Commit 5ea88d06 authored by Ryan Taylor's avatar Ryan Taylor

separate steps out from config task

parent 4b2c85c2
---
# download from https://foldingathome.org/start-folding/
- name: Install FAHClient
yum:
name: https://download.foldingathome.org/releases/public/release/fahclient/centos-6.7-64bit/v7.5/fahclient-7.5.1-1.x86_64.rpm
state: present
validate_certs: yes
when: ansible_facts.packages['fahclient'] is not defined
register: fah_install
# The client seems to overwrite the config when it starts the 1st time (?)
# So in order to make the config change persist we need to stop it first.
- name: Stop FAHClient so we can configure it
sysvinit:
name: "FAHClient"
state: "stopped"
when: fah_install.changed
# A handler doesn't work well here because we don't want to reload
# at the end, after it was already stopped and started.
- name: Configure FAHClient
......@@ -56,9 +39,3 @@
enabled: "yes"
pattern: "/usr/bin/FAHClient"
- name: Link to log file for convenience
file:
src: /var/lib/fahclient/log.txt
dest: /home/centos/log.txt
state: link
---
# download from https://foldingathome.org/start-folding/
- name: Install FAHClient
yum:
name: https://download.foldingathome.org/releases/public/release/fahclient/centos-6.7-64bit/v7.5/fahclient-7.5.1-1.x86_64.rpm
state: present
validate_certs: yes
when: ansible_facts.packages['fahclient'] is not defined
register: fah_install
# The client seems to overwrite the config when it starts the 1st time (?)
# So in order to make the config change persist we need to stop it first.
- name: Stop FAHClient so we can configure it
sysvinit:
name: "FAHClient"
state: "stopped"
when: fah_install.changed
......@@ -13,6 +13,8 @@
- { import_tasks: storage.yml, tags: ['storage'] }
- { import_tasks: update.yml, tags: ['update'], when: apply_updates|bool }
- { import_tasks: install.yml, tags: ['install'] }
- { import_tasks: config.yml, tags: ['config'] }
- { import_tasks: misc.yml, tags: ['misc'] }
---
- name: Link to log file for convenience
file:
src: /var/lib/fahclient/log.txt
dest: /home/centos/log.txt
state: link
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