superlint/.automation/test/ansible/ghe_initialize/tasks/ghe-config-apply.yml
Marco Ferrari ab8780a58f
Install, configure, and run jscpd. Add missing tests (#1032)
Co-authored-by: Gabo <gabo.fdc@gmail.com>
Co-authored-by: Matt Desmond <beardofedu@github.com>
Co-authored-by: Lukas Gravley <admiralawkbar@github.com>
2021-01-27 20:47:34 +01:00

32 lines
807 B
YAML

---
- block:
########################################
# Copy the script to the local machine #
########################################
- name: Copy the script to the GHE instance
become: true
template:
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
shell: "nohup ./tmp/ghe-config-apply.sh </dev/null >/dev/null 2>&1 &"
async: 300
poll: 0
args:
executable: "/bin/bash"
######################
# Set the tags block #
######################
tags:
- github
- ghe_primary
- initialize