lab:second_ansible_job_-_check_cmos_battery_health
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
lab:second_ansible_job_-_check_cmos_battery_health [2023/04/17 01:48] – updated after testing user | lab:second_ansible_job_-_check_cmos_battery_health [2023/04/28 21:59] (current) – reaplced user | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== Second Ansible Job - Check CMOS Battery Health ====== | ||
- | From NUC 1, log in to the Ansible control node, NUC 2. | ||
- | We are going to create and run an Ansible playbook to check the CMOS battery health on the nodes | ||
- | |||
- | Steps: | ||
- | - Create file / | ||
- | * <file yaml cmos-check.yml> | ||
- | - hosts: nodes | ||
- | become: true | ||
- | become_user: | ||
- | tasks: | ||
- | - name: CMOS battery health | ||
- | lineinfile: | ||
- | path: / | ||
- | line: " | ||
- | status: present | ||
- | check_mode: yes | ||
- | register: cmos_battery_ok | ||
- | </ | ||
- | - Test the playbook | ||
- | * '' |
lab/second_ansible_job_-_check_cmos_battery_health.1681696113.txt.gz · Last modified: 2023/04/17 01:48 by user