Optimized git-config role

This commit is contained in:
2025-04-01 23:57:52 +02:00
parent 83007983a5
commit 9dc571062c
12 changed files with 78 additions and 33 deletions

View File

@@ -8,7 +8,7 @@ The `main.yml` file in the `pc-docker` role consists of two primary tasks:
1. **Install Docker**: This task uses the `community.general.pacman` module to install `docker` and `docker-compose` on the system. It ensures that these packages are present on the PC.
2. **User Group Configuration**: This task adds a specified user (denoted as `{{client_username}}`) to the Docker user group. This is crucial for allowing the specified user to interact with Docker without needing superuser permissions.
2. **User Group Configuration**: This task adds a specified user (denoted as `{{users.client.username}}`) to the Docker user group. This is crucial for allowing the specified user to interact with Docker without needing superuser permissions.
## Use Case
The playbook is designed for developers who require Docker in their local development environments. It simplifies the process of Docker installation and configuration, making it straightforward for developers to start containerizing their applications without the complexities often encountered in a server or production environment.
@@ -25,7 +25,7 @@ To run this playbook:
## Important Notes
- **Not for Server Use**: This playbook is not designed for server environments. It is optimized for individual development machines.
- **Customization**: You may need to customize the playbook, especially the `{{client_username}}` variable, to suit your specific setup.
- **Customization**: You may need to customize the playbook, especially the `{{users.client.username}}` variable, to suit your specific setup.
- **Security Considerations**: While adding a user to the Docker group provides ease of use, be aware of the security implications. It grants the user elevated privileges which, if misused, can affect the entire system.
## Support & Contribution

View File

@@ -5,8 +5,8 @@
- docker-compose
state: present
- name: Adding user {{client_username}} to relevant docker usergroup
- name: Adding user {{users.client.username}} to relevant docker usergroup
user:
name: "{{client_username}}"
name: "{{users.client.username}}"
groups: docker
append: yes