Initialize global credentials (user.name and user.email) for multiple users on development a machine
Git must be installed on the target system. Requires root user.
Variable | Description |
---|---|
users | Array of users |
Variable | Description |
---|---|
user | System user account |
name | Full name of user |
No role dependencies
- name: Init git on host
hosts: dev_machine
vars:
users:
-
user: "robert"
name: "Robert Example"
email: "[email protected]"
-
user: "anna"
name: "Anna Example"
email: "[email protected]"
roles:
- cyborg_x1.gitmcredinit
BSD
Christian Holl: cyborgx1 [the at] gmail [the dot] com