diff --git a/tasks/auth.yml b/tasks/auth.yml index 7a0abbe..0767071 100644 --- a/tasks/auth.yml +++ b/tasks/auth.yml @@ -5,19 +5,21 @@ src: /etc/mongod.conf dest: /etc/mongod.conf.bak remote_src: True + changed_when: False - name: Deploy config file without auth template: src: etc/mongod_init.conf.j2 dest: /etc/mongod.conf mode: 0644 + changed_when: False - name: Restart service service: name: mongod state: restarte + changed_when: False become: True - changed_when: False - name: Create admin user mongodb_user: @@ -33,10 +35,11 @@ src: /etc/mongod.conf.bak dest: /etc/mongod.conf remote_src: True + changed_when: False - name: Restart service service: name: mongod state: restarte - changed_when: False + changed_when: False become: True