diff options
author | Egor Tensin <Egor.Tensin@gmail.com> | 2023-07-31 23:44:54 +0200 |
---|---|---|
committer | Egor Tensin <Egor.Tensin@gmail.com> | 2023-07-31 23:44:54 +0200 |
commit | 727ab17a644d52105746e18c301cf733b1181507 (patch) | |
tree | 71113c6efae3074899de965aee5489cb76362f8e /src/roles/etckeeper | |
parent | downgrade Ansible (diff) | |
download | maintenance-727ab17a644d52105746e18c301cf733b1181507.tar.gz maintenance-727ab17a644d52105746e18c301cf733b1181507.zip |
move Ansible files to src/
Diffstat (limited to 'src/roles/etckeeper')
-rw-r--r-- | src/roles/etckeeper/defaults/main.yml | 2 | ||||
-rw-r--r-- | src/roles/etckeeper/tasks/main.yml | 16 |
2 files changed, 18 insertions, 0 deletions
diff --git a/src/roles/etckeeper/defaults/main.yml b/src/roles/etckeeper/defaults/main.yml new file mode 100644 index 0000000..077855f --- /dev/null +++ b/src/roles/etckeeper/defaults/main.yml @@ -0,0 +1,2 @@ +git_name: Egor Tensin +git_email: Egor.Tensin@gmail.com diff --git a/src/roles/etckeeper/tasks/main.yml b/src/roles/etckeeper/tasks/main.yml new file mode 100644 index 0000000..19f9b86 --- /dev/null +++ b/src/roles/etckeeper/tasks/main.yml @@ -0,0 +1,16 @@ +- name: Make sure git is configured + become: true + block: + - name: Set user.name + community.general.git_config: + scope: local + repo: /etc + name: user.name + value: '{{ git_name }}' + + - name: Set user.email + community.general.git_config: + scope: local + repo: /etc + name: user.email + value: '{{ git_email }}' |