Commit 1cb0ebeb authored by Rafael Monnerat's avatar Rafael Monnerat

playbook: Fix etckeeper role

parent f113ba4a
...@@ -25,9 +25,9 @@ ...@@ -25,9 +25,9 @@
- file: path=/etc/.gitignore state=touch mode=0660 - file: path=/etc/.gitignore state=touch mode=0660
- lineinfile: - lineinfile:
dest:/etc/.gitignore dest=/etc/.gitignore
line:{{ item }} line={{ item }}
when: etckeeper_configuration.stat.exists == False when: etckeeper_configuration.stat.exists == True
with_items: with_items:
- ~* - ~*
- shadow* - shadow*
...@@ -39,11 +39,9 @@ ...@@ -39,11 +39,9 @@
- opt/slapos/ssl - opt/slapos/ssl
- lineinfile: - lineinfile:
dest:/etc/etckeeper/etckeeper.conf dest=/etc/etckeeper/etckeeper.conf
line:{{ item }} line="VCS=\"git\""
when: etckeeper_configuration.stat.exists == False when: etckeeper_configuration.stat.exists == True
with_items:
- VCS="git"
- shell: git config user.email `root@hostname` - shell: git config user.email `root@hostname`
when: etckeeper_configuration.stat.exists == False when: etckeeper_configuration.stat.exists == False
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment