diff options
author | clyhtsuriva <aimeric@adjutor.xyz> | 2025-01-31 16:58:56 +0100 |
---|---|---|
committer | clyhtsuriva <aimeric@adjutor.xyz> | 2025-01-31 16:58:56 +0100 |
commit | f18e9b4ebce97e220f3197d35608366f66896064 (patch) | |
tree | d86a192a0911d124ca4d8cb993d1f7690fb5195f | |
parent | f6477766b75e401d211944519ea11d4ad4fc9f61 (diff) |
Moving ansible stuff to homelab-iac repo.
Also adding patch flag to git add to interactively choose what to
commit.
-rw-r--r-- | ansible/update_adjutor.yml | 12 | ||||
-rw-r--r-- | ansible/update_nginx.yml | 25 | ||||
-rwxr-xr-x | bin/update-scripts-repo.sh | 3 |
3 files changed, 1 insertions, 39 deletions
diff --git a/ansible/update_adjutor.yml b/ansible/update_adjutor.yml deleted file mode 100644 index 2724a30..0000000 --- a/ansible/update_adjutor.yml +++ /dev/null @@ -1,12 +0,0 @@ ---- -- name: Update the server - hosts: vps - become: true - tasks: - - - name: Update and upgrade apt packages - ansible.builtin.apt: - update_cache: true - upgrade: true - autoremove: true -... diff --git a/ansible/update_nginx.yml b/ansible/update_nginx.yml deleted file mode 100644 index 4813e6c..0000000 --- a/ansible/update_nginx.yml +++ /dev/null @@ -1,25 +0,0 @@ ---- -- name: Update nginx if needed - hosts: vps - become: true - become_user: root - tasks: - - - name: Ensure nginx is at the latest version - ansible.builtin.package: - name: nginx - state: latest - notify: restart nginx - - - name: Ensure nginx is running - ansible.builtin.service: - name: nginx - state: started - enabled: true - - handlers: - - name: Restart nginx - ansible.builtin.service: - name: nginx - state: restarted -... diff --git a/bin/update-scripts-repo.sh b/bin/update-scripts-repo.sh index be782ab..22e0807 100755 --- a/bin/update-scripts-repo.sh +++ b/bin/update-scripts-repo.sh @@ -7,9 +7,8 @@ pushd "$SCRIPTS_REPO_PATH" || exit 1 cp -rv "$HOME/.local/usr/local/bin" . cp -rv "$HOME/workbench/auto-void-packages" . -cp -rv "$HOME/workbench/ansible" . git status | less -git add . && git commit -v && git push -v --progress +git add --patch . && git commit -v && git push -v --progress popd || exit 1 |