mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2025-09-04 09:21:42 +02:00
Optimized git-config role
This commit is contained in:
@@ -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
|
||||
|
@@ -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
|
||||
|
Reference in New Issue
Block a user