83394/how-to-create-a-group-using-ansible-playbook
Hi Guys,
I have created some users. Now I want to create one group and add all the users to this group. But I want to do this dynamically using Ansible Playbook. How can I do that?
Hi@akhtar,
You can find one module named group in Ansible. This module is used to create a group at run time. You can use the below YML script.
- hosts: all tasks: - name: Create a Group group: name: Group1 state: present
Hi@akhtar, You can find the ec2_key module in ...READ MORE
You can read install and setup apache ...READ MORE
Hi@akhtar, You can use the user module in ...READ MORE
Hi@akhtar, Ansible has a module named firewalld to ...READ MORE
Hey @nmentityvibes, you seem to be using ...READ MORE
Consider this - In 'extended' Git-Flow, (Git-Multi-Flow, ...READ MORE
It can work if you try to put ...READ MORE
When you use docker-compose down, all the ...READ MORE
Hi@akhtar, You can use the ec2_group module in ...READ MORE
Hi@akhtar, You can use the docker_container module in ...READ MORE
OR
At least 1 upper-case and 1 lower-case letter
Minimum 8 characters and Maximum 50 characters
Already have an account? Sign in.