diff options
author | Daniel Farrell <dfarrell@redhat.com> | 2015-06-01 10:06:36 -0400 |
---|---|---|
committer | Daniel Farrell <dfarrell@redhat.com> | 2015-06-01 10:43:51 -0400 |
commit | 220bcb74645f5beba93282a38bac0276be199a71 (patch) | |
tree | cdef237c5e8a806e5349d074ade2e0a0b6ca4273 /foreman/ci/reload_playbook.yml | |
parent | db9f29f35ef27bf9af45cb37661bfad8f1543f8b (diff) |
Copy Foreman deploy logic from bgs_vagrant repo
This code was developed in a scratch space GitHub
repo, mostly by Tim. As part of the clean-up process
for Arno, it should be migrated to Genesis and all
future work should be done via Genesis.
This is trozet/bgs_vagrant as of f27548.
I didn't copy the clean.sh, deploy.sh and build.sh scripts
from bgs_vagrant in this commit. They differ from those
in Genesis and need more attention for a proper migration.
See: https://github.com/trozet/bgs_vagrant
JIRA: BGS-53
Change-Id: I512e0ea0d02f8d99048db771221abc88aa60e2d5
Signed-off-by: Daniel Farrell <dfarrell@redhat.com>
Diffstat (limited to 'foreman/ci/reload_playbook.yml')
-rw-r--r-- | foreman/ci/reload_playbook.yml | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/foreman/ci/reload_playbook.yml b/foreman/ci/reload_playbook.yml new file mode 100644 index 0000000..9e3d053 --- /dev/null +++ b/foreman/ci/reload_playbook.yml @@ -0,0 +1,16 @@ +--- +- hosts: all + tasks: + - name: restart machine + shell: sleep 2 && shutdown -r now "Ansible updates triggered" + async: 1 + poll: 0 + ignore_errors: true + + - name: waiting for server to come back + local_action: wait_for host="{{ ansible_ssh_host }}" + port="{{ ansible_ssh_port }}" + state=started + delay=60 + timeout=180 + sudo: false |