Initial project commit

This commit is contained in:
2024-12-16 19:59:57 -05:00
commit fa1b5cce00
3409 changed files with 460909 additions and 0 deletions

31
check_rear.yml Normal file
View File

@ -0,0 +1,31 @@
---
- name: Something
hosts: temp
become: false
gather_facts: true
tasks:
- name: Read the conf file
ansible.builtin.slurp:
src: /etc/rear/local.conf
register: slurp_local_conf
- name: Debug local_conf_content
ansible.builtin.debug:
var: slurp_local_conf
- name: Decode the conf file content
ansible.builtin.set_fact:
local_conf_content: "{{ slurp_local_conf['content'] | b64decode }}"
- name: Debug local_conf_content
ansible.builtin.debug:
var: local_conf_content
- name: Extract the NFS server address
ansible.builtin.set_fact:
nfs_server: "{{ local_conf_content | regex_search('nfs://(.*?)/', '\\1') | first }}"
- name: Debug nfs_server
ansible.builtin.debug:
var: nfs_server