Can anyone please help me if my playbook is correct or not.
Also, please help it correct and it should run / execute correctly and it should make the necessary changes in the RHEL8 slave VM and make the required changes and do the required updates as mentioned in the tasks 1.1, 2.1, 3.1 etc.
Looks like you are missing the entire start of a playbook. Is this a role or an include? If not need to set up the header section (hosts, connection, gather_facts, etc) and tasks section.
Can anyone please help me if my playbook is correct or not.
That totally depends on what your interpretation is of “correct”.
I doubt posting a 2000 line playbook and asking if it “is correct” is going to get a useful response.
I’m definitely not going to go through it
Also, please help it correct and it should run / execute correctly and it should make the necessary changes in the RHEL8 slave VM and make the required changes and do the required updates as mentioned in the tasks 1.1, 2.1, 3.1 etc.
This list is more geared towards specific problems related to ansible. You seem to be looking for some high level patching strategy, which is outside the scope of this list (I think).
It’s better to come up with specific questions, such as an error that you don’t understand, a task doesn’t do what you expect, etc.
Evan coming to your reply regarding the header section (hosts, connection, gather_facts, etc) and tasks section. this all I’ve included in another playbook and calling this bigger playbook from that test playbook. so, basically I’ve included the header section and everything in a small playbook also, I’ve used ansible.builtin.include:
module and included this bigger playbook (i.e. https://github.com/himanshukaushik16/ansible/blob/main/cis_rhel8_testing.yml) in the smaller playbook.
So, I’m actually looking for what I can do in this playbook. I’ve checked the indentation and it’s correct but still getting error for indentation. can anyone please look into this and help me out.
Dick thanks buddy but I guess I’m facing this issue not any specific error because it’s showing indentation error and sometimes it’s something else but my question is how can I correct this playbook and how can I get the report and see the changes done by running this playbook. It would be so great of you if you can help me with this.
Evan coming to your reply regarding the header section (hosts, connection, gather_facts, etc) and tasks section. this all I’ve included in another playbook and calling this bigger playbook from that test playbook. so, basically I’ve included the header section and everything in a small playbook also, I’ve used ansible.builtin.include:
module and included this bigger playbook (i.e. https://github.com/himanshukaushik16/ansible/blob/main/cis_rhel8_testing.yml) in the smaller playbook.
So, I’m actually looking for what I can do in this playbook. I’ve checked the indentation and it’s correct but still getting error for indentation. can anyone please look into this and help me out.
All right, what line is it saying the error is at. copy pasting all that code into a single play is a pain. I tried it one before and found it was easier to just rewrite and get rid of all the tags and switches the the Lock Down project was using if I was not going use their playbooks and roles.