Ansible-ADHOC commands/Day1/assignment

Write a Ansible Adhoc Commands to create a group called “deploy ansible localhost -m ansible.builtin.group -a”state=present name=deploy” -b 2. Write a Ansible Adhoc Commands to create a user called “deploy-user” which is part of group called “deploy” and with /bin/bash shell. ansible localhost -m ansible.builtin.user -a”state=present name=deploy-user group=deploy” -b 3. Write a Ansible Adhoc commands install package named “httpd” in RHEL/centos. ansible localhost -m yum -a”state=present name=httpd” -b 4. Write a Ansible Adhoc commands to start and enable the service

Read more