Moving all files to basedir

This commit is contained in:
2026-03-09 13:08:44 -04:00
parent 63099ecf0d
commit 45b0203787
7 changed files with 1 additions and 1 deletions

22
build_needs_reboot.yml Normal file
View File

@@ -0,0 +1,22 @@
- name: Create test script to determine if reboot is necessary
hosts: all
tasks:
- name: Create ~/bin if it doesn't already exist
ansible.builtin.shell:
cmd: mkdir ~/bin
args:
creates: ~/bin/
- name: Build needs_reboot
ansible.builtin.shell:
cmd: |
print '#!/usr/bin/env zsh' > needs_reboot
source ~/.zsh_functions
declare -f kernel_func >> needs_reboot
perl -pi -e 'if (/OK/) { $_ = "false\n" }' needs_reboot
perl -pi -e 'if (/needs reboot/) { $_ = "true\n" }' needs_reboot
printf "\n\n\nkernel_func\n" >> needs_reboot
chmod +x needs_reboot
args:
creates: needs_reboot
executable: /usr/bin/zsh
chdir: ~/bin/