Compare commits

..

2 Commits

Author SHA256 Message Date
heath 4431f86464 back up ansible-pull.sh if updated 2026-07-11 18:43:15 -05:00
heath 01c537343c change bootstrap.sh file permissions 2026-07-11 18:25:01 -05:00
2 changed files with 4 additions and 3 deletions
+3 -3
View File
@@ -109,7 +109,7 @@ system_groupadd hpf-sudo-np 701
rm "${ETC_sudoers_d_hpf}" 2>/dev/null rm "${ETC_sudoers_d_hpf}" 2>/dev/null
curl -o "$ETC_sudoers_d_hpf" "${GIT_REPO_sudoers_d_hpf}" curl -o "$ETC_sudoers_d_hpf" "${GIT_REPO_sudoers_d_hpf}"
chown root:root "${ETC_sudoers_d_hpf}" chown root:root "${ETC_sudoers_d_hpf}"
chmod u=rw,g=r,o= "${ETC_sudoers_d_hpf}" chmod u=rw,go= "${ETC_sudoers_d_hpf}"
# Create the hpf-ans user # Create the hpf-ans user
system_useradd hpf-ans 800 system_useradd hpf-ans 800
@@ -126,12 +126,12 @@ as_hpf_ans "pip install --upgrade ansible"
# Make sure bin exists # Make sure bin exists
as_hpf_ans "mkdir -p \"${HPF_ANS_bin}\"" as_hpf_ans "mkdir -p \"${HPF_ANS_bin}\""
as_hpf_ans "chown hpf-ans:hpf-ans \"${HPF_ANS_bin}\"; chmod ug=rwx,o= \"${HPF_ANS_bin}\"" as_hpf_ans "chown hpf-ans:hpf-ans \"${HPF_ANS_bin}\"; chmod u=rwx,go= \"${HPF_ANS_bin}\""
# Create ~hpf-ans/bin/ansible-pull.sh # Create ~hpf-ans/bin/ansible-pull.sh
as_hpf_ans "rm \"${HPF_ANS_ansible_pull_sh}\" 2>/dev/null" as_hpf_ans "rm \"${HPF_ANS_ansible_pull_sh}\" 2>/dev/null"
as_hpf_ans "curl -o \"${HPF_ANS_ansible_pull_sh}\" \"${GIT_REPO_ansible_pull_sh}\"" as_hpf_ans "curl -o \"${HPF_ANS_ansible_pull_sh}\" \"${GIT_REPO_ansible_pull_sh}\""
as_hpf_ans "chown hpf-ans:hpf-ans \"${HPF_ANS_ansible_pull_sh}\"; chmod ug=rwx,o= \"${HPF_ANS_ansible_pull_sh}\"" as_hpf_ans "chown hpf-ans:hpf-ans \"${HPF_ANS_ansible_pull_sh}\"; chmod u=rwx,go= \"${HPF_ANS_ansible_pull_sh}\""
# Run ansible-pull to finish up # Run ansible-pull to finish up
as_hpf_ans "bin/ansible-pull.sh bootstrap.yml" as_hpf_ans "bin/ansible-pull.sh bootstrap.yml"
+1
View File
@@ -104,3 +104,4 @@
backup: true backup: true
become: no become: no
#### - Create crontab entry for production branch