2020-02-04 09:49:58 -05:00
|
|
|
---
|
2022-05-23 15:51:47 -04:00
|
|
|
- name: GHE Config apply
|
2023-04-10 14:33:15 -04:00
|
|
|
######################
|
|
|
|
# Set the tags block #
|
|
|
|
######################
|
|
|
|
tags:
|
|
|
|
- github
|
|
|
|
- ghe_primary
|
|
|
|
- initialize
|
|
|
|
|
2022-05-23 15:51:47 -04:00
|
|
|
block:
|
2020-02-04 09:49:58 -05:00
|
|
|
########################################
|
|
|
|
# Copy the script to the local machine #
|
|
|
|
########################################
|
|
|
|
- name: Copy the script to the GHE instance
|
|
|
|
become: true
|
2022-03-24 10:26:33 -04:00
|
|
|
ansible.builtin.template:
|
2020-02-04 09:49:58 -05:00
|
|
|
force: 'yes'
|
|
|
|
src: "ghe-config-apply.sh"
|
|
|
|
dest: /tmp/ghe-config-apply.sh
|
|
|
|
owner: admin
|
|
|
|
group: admin
|
|
|
|
mode: 0755
|
|
|
|
|
|
|
|
##################################
|
|
|
|
# Run config to take in settings #
|
|
|
|
##################################
|
|
|
|
- name: Run ghe-config-apply for Settings to Take Effect
|
2022-03-24 10:26:33 -04:00
|
|
|
ansible.builtin.shell: "nohup ./tmp/ghe-config-apply.sh </dev/null >/dev/null 2>&1 &"
|
2020-02-04 09:49:58 -05:00
|
|
|
async: 300
|
|
|
|
poll: 0
|
|
|
|
args:
|
|
|
|
executable: "/bin/bash"
|