lab:second_ansible_job_-_check_cmos_battery_health
Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
lab:second_ansible_job_-_check_cmos_battery_health [2023/04/17 01:22] – created 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: | ||
- | dest: / | ||
- | line: " | ||
- | check_mode: yes | ||
- | register: presence | ||
- | failed_when: | ||
- | </ | ||
- | - Test the playbook | ||
- | * '' |
lab/second_ansible_job_-_check_cmos_battery_health.1681694537.txt.gz · Last modified: 2023/04/17 01:22 by user