Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
arbutus-nt
TerraFold
Commits
5ea88d06
Commit
5ea88d06
authored
Apr 14, 2020
by
Ryan Taylor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
separate steps out from config task
parent
4b2c85c2
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
29 additions
and
23 deletions
+29
-23
ansible/roles/folding-client/tasks/config.yml
ansible/roles/folding-client/tasks/config.yml
+0
-23
ansible/roles/folding-client/tasks/install.yml
ansible/roles/folding-client/tasks/install.yml
+19
-0
ansible/roles/folding-client/tasks/main.yml
ansible/roles/folding-client/tasks/main.yml
+2
-0
ansible/roles/folding-client/tasks/misc.yml
ansible/roles/folding-client/tasks/misc.yml
+8
-0
No files found.
ansible/roles/folding-client/tasks/config.yml
View file @
5ea88d06
---
# 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
ansible/roles/folding-client/tasks/install.yml
0 → 100644
View file @
5ea88d06
---
# 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
ansible/roles/folding-client/tasks/main.yml
View file @
5ea88d06
...
...
@@ -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'
]
}
ansible/roles/folding-client/tasks/misc.yml
0 → 100644
View file @
5ea88d06
---
-
name
:
Link to log file for convenience
file
:
src
:
/var/lib/fahclient/log.txt
dest
:
/home/centos/log.txt
state
:
link
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment