summaryrefslogtreecommitdiff
path: root/ansible_stuff.org
diff options
context:
space:
mode:
Diffstat (limited to 'ansible_stuff.org')
-rw-r--r--ansible_stuff.org70
1 files changed, 70 insertions, 0 deletions
diff --git a/ansible_stuff.org b/ansible_stuff.org
index 04c860f..3b161ab 100644
--- a/ansible_stuff.org
+++ b/ansible_stuff.org
@@ -784,3 +784,73 @@ https://docs.ansible.com/ansible/latest/playbook_guide/playbooks_reuse_roles.htm
- make copy of ~/.ansible into repo for reference:
rsync -avzhrP ~/.ansible* ~/repos/ansible_repo/home/
+
+- my next projects will be to do the following on a managed host:
+ - [ ] setup/update system files
+ - import needed public keys
+ - slackware
+ - slackbuilds
+ - [ ] setup/update network files
+ - [ ] setup a firewall
+ - probably need to use a 'handler' for this
+ - [ ] create/update a user
+ - [ ] copy/create needed files in users home directory
+ - [ ] copy need ssh keys
+ - use ansible vaults
+ - [ ] add to sudoers
+ - may need to use a template' for this
+ - [ ] configure/perform slackpkg updates
+ - [ ] run the sbopkg package manager to install a package
+ - clamav
+ - [ ] perform a system backup
+
+
+- a slacker created a wiki entry on how to perform slackware
+ automation using ansible
+ https://docs.slackware.com/howtos:slackware_admin:slackware_automation_using_ansible
+ https://gitlab.com/mmlj4/ansible_slackware_bootstrap
+
+- some notes on how to use a 'slackpg module' for ansible
+ https://docs.ansible.com/ansible/latest/collections/community/general/slackpkg_module.html
+
+- the difference between using 'ansible.builtin.shell' vs
+ 'ansible.builtin.command'
+ https://stackoverflow.com/questions/56663332/difference-between-shell-and-command-in-ansible
+
+
+** <2023-12-12 Tue>
+
+today i learned that ansible makes it a lil difficult to copy/move
+files around on the controller node. they make it very apparent that
+ansible is for contolling managed nodes not necessarily controlling
+the control node.
+
+** <2023-12-13 Wed>
+
+looking at examples to update a file on a managed host
+
+these examples use the 'lineinfile' module
+https://www.middlewareinventory.com/blog/ansible-update-etc-hosts-file-across-all-hosts/
+https://docs.ansible.com/ansible/latest/collections/ansible/builtin/lineinfile_module.html
+
+- regex syntax for python
+ https://docs.python.org/3/library/re.html
+- an online python regex syntax checker
+ https://pythex.org/
+
+** <2023-12-14 Thu>
+
+copy 'rc.firewall' from bbox to boom2:
+
+rsync --progress -avzhr --delete -e 'ssh -i ~/.ssh/20231024bbox' dpierre@192.168.0.220:/etc/rc.d/rc.firewall ~/.ansible/roles/new_host/files/
+
+https://chmod-calculator.com/
+
+---
+- name: "09 - custom ansible - backup system files"
+ hosts: localhost
+ tasks:
+ - name: backup '/etc/fstab'
+ ansible.builtin.debug:
+ msg: backup_etc_dir variable = {{ backup_etc_dir }}
+ tags: ['fstab']