]> git.apps.os.sepia.ceph.com Git - ceph-ansible.git/commitdiff
Only change when the task returns false 245/head
authorSébastien Han <sebastien.han@enovance.com>
Wed, 8 Apr 2015 16:46:54 +0000 (18:46 +0200)
committerSébastien Han <sebastien.han@enovance.com>
Wed, 8 Apr 2015 16:46:54 +0000 (18:46 +0200)
We only want to see things that really changed after a play completes.

Signed-off-by: Sébastien Han <sebastien.han@enovance.com>
16 files changed:
roles/ceph-common/tasks/install_on_redhat.yml
roles/ceph-common/tasks/main.yml
roles/ceph-common/tasks/os_tuning.yml
roles/ceph-common/tasks/prerequisite_ice.yml
roles/ceph-mon/tasks/ceph_keys.yml
roles/ceph-mon/tasks/create_mds_filesystems.yml
roles/ceph-mon/tasks/openstack_config.yml
roles/ceph-mon/tasks/start_monitor.yml
roles/ceph-osd/tasks/osd_directory.yml
roles/ceph-osd/tasks/osd_fragment.yml
roles/ceph-osd/tasks/raw_multi_journal.yml
roles/ceph-osd/tasks/zap_devices.yml
roles/ceph-radosgw/tasks/install_debian.yml
roles/ceph-radosgw/tasks/install_redhat.yml
roles/ceph-restapi/tasks/main.yml
roles/ceph-restapi/tasks/pre_requisite.yml

index a0c1c66dec6ed1695f541811fc827222dc4f4eff..8a66e537f1500cb4890ad8d58ea9cf0cf055278e 100644 (file)
     rpm -U http://ceph.com/rpm-{{ ceph_stable_release }}/{{ ceph_stable_redhat_distro }}/noarch/ceph-release-1-0.{{ ceph_stable_redhat_distro|replace('rhel', 'el') }}.noarch.rpm
     creates=/etc/yum.repos.d/ceph.repo
   when: ceph_stable
+  changed_when: False
 
 - name: Add Ceph development repository
   command: >
     rpm -U http://gitbuilder.ceph.com/ceph-rpm-{{ ceph_dev_redhat_distro }}-x86_64-basic/ref/{{ ceph_dev_branch }}/noarch/ceph-release-1-0.{{ ceph_stable_redhat_distro }}.noarch.rpm
     creates=/etc/yum.repos.d/ceph.repo
   when: ceph_dev
+  changed_when: False
 
 - name: Add Inktank Ceph Enterprise repository
   template: >
index aff3da4ac65eba5338fc756366c599f3dac012a4..c65432262d0432e551b31388e48c52ba06313825 100644 (file)
@@ -16,6 +16,7 @@
   shell: "stat /var/run/ceph/*.asok > /dev/null 2>&1"
   ignore_errors: true
   register: socket
+  changed_when: False
 
 - name: Generate cluster UUID
   shell: >
@@ -32,6 +33,7 @@
   connection: local
   sudo: false
   register: cluster_uuid
+  changed_when: False
 
 - name: Generate Ceph configuration file
   template: >
index 7bf05f4f5fdb3799c47b6d2ac2dc7ed3011fc919..e0daff9f15090b75cfeab67f22cc5ff9c45e756f 100644 (file)
@@ -2,16 +2,19 @@
 - name: Disable OSD directory parsing by updatedb
   command: updatedb -e /var/lib/ceph
   ignore_errors: true
+  changed_when: False
 
 - name: Disable transparent hugepage
   command: "echo never > /sys/kernel/mm/transparent_hugepage/enabled"
   when: disable_transparent_hugepage
   ignore_errors: true
+  changed_when: False
 
 - name: Disable swap
   command: swapoff -a
   when: disable_swap
   ignore_errors: true
+  changed_when: False
 
 - name: Apply OS tuning
   sysctl: >
index da530f3e982e31a9fce8fe74cd3abdab61a8ddc6..67d03ab0b534927e98211f574f3a6b8b98ac1122 100644 (file)
@@ -38,7 +38,9 @@
     tar -xzf ICE-{{ ceph_stable_ice_version }}-{{ ceph_stable_ice_distro }}.tar.gz
     chdir={{ ceph_stable_ice_temp_path }}
   when: ceph_stable_ice and repo_exist.stat.exists == False
+  changed_when: False
 
 - name: Move ICE extracted packages
   shell: "mv {{ ceph_stable_ice_temp_path }}/ceph/*/* {{ ceph_stable_ice_temp_path }}"
   when: ceph_stable_ice and repo_exist.stat.exists == False
+  changed_when: False
index e322209761cac78c0a100c0e0db5eeff74c8731b..04dd77c962968efd0da3d06258c7ec8ed6c045d0 100644 (file)
@@ -27,6 +27,7 @@
   shell: ls -1 /etc/ceph/*.keyring
   register: ceph_keys
   when: cephx
+  changed_when: False
 
 - name: Set keys permissions
   file: >
index 4ebedbc33916cc11c285dbba17e50abd1c838fc2..f81e20be437936d8bbc64b17451ef8469bb572ec 100644 (file)
@@ -4,6 +4,8 @@
   with_items:
     - cephfs_data
     - cephfs_metadata
+  changed_when: False
 
 - name: Create Ceph Filesystem
   command: ceph fs new {{ cephfs }} {{ cephfs_metadata }} {{ cephfs_data }}
+  changed_when: False
index 870c17a8b2bf6b4757bcc68c316eb3be90923d82..724e7c6a73681859ad765faef9b898de74737bf5 100644 (file)
@@ -7,9 +7,11 @@
     - "{{ openstack_nova_pool }}"
     - "{{ openstack_cinder_backup_pool }}"
   ignore_errors: True
+  changed_when: False
 
 - name: Create OpenStack keys
   command: >
     ceph auth get-or-create {{ item.name }} {{ item.value }} -o /etc/ceph/ceph.{{ item.name }}.keyring
     creates=/etc/ceph/ceph.{{ item.name }}.keyring
   with_items: openstack_keys
+  changed_when: False
index 94d94f764da9516cf8d6cae3f7442f6adc25bec3..d507b8758c38871e30a8fe885cf0193af1d6f690 100644 (file)
@@ -10,6 +10,7 @@
     - done
     - upstart
   when: ansible_distribution == "Ubuntu"
+  changed_when: False
 
 - name: Activate monitor with sysvinit
   file: >
@@ -42,3 +43,4 @@
 - name: Get Ceph monitor version
   shell: ceph daemon mon."{{ ansible_hostname }}" version | cut -d '"' -f 4 | cut -f 1,2 -d '.'
   register: ceph_version
+  changed_when: False
index d01a206f3afbb45556c23ebc2f6edd3c5e1c9098..a646a1b087d40fc3c9d2a187a8404bafd4ffcbad 100644 (file)
@@ -30,6 +30,7 @@
   command: "ceph-disk prepare {{ item }}"
   when: osd_directory
   with_items: osd_directories
+  changed_when: False
 
 # Activate means:
 # - mount the volume in a temp location
index 13f96caf9f2993e4e29377097438d35e184422c7..fd063d8e9ef2e155fac2b522bda534407d4e1e85 100644 (file)
@@ -4,12 +4,14 @@
   with_items: devices
   register: osd_path
   ignore_errors: true
+  changed_when: False
 
 - name: Get OSD id
   command: cat {{ item.stdout }}/whoami
   register: osd_id
   with_items: osd_path.results
   ignore_errors: true
+  changed_when: False
 
 - name: Create a Ceph fragment and assemble directory
   file: >
@@ -30,6 +32,7 @@
 
 - name: Copy ceph.conf for assembling
   command: cp /etc/ceph/ceph.conf /etc/ceph/ceph.d/
+  changed_when: False
 
 - name: Assemble OSD sections
   assemble: >
index 80e17c69b365489e11147ad3fb36b12cee150c2f..d1ccf8a00d7d248219db29940d1ec5325ff0e51b 100644 (file)
@@ -29,5 +29,6 @@
     - ispartition.results
     - devices
     - raw_journal_devices
+  changed_when: False
 
 - include: activate_osds.yml
index 6372e0cb7fda4da038ddf966fed6f28d185d3001..f11b7f67ac465b301f5109d49d7e4cbf657e1885 100644 (file)
@@ -6,8 +6,10 @@
   command: ceph-disk zap {{ item }}
   when: zap_devices and (journal_collocation or raw_multi_journal)
   with_items: devices
+  changed_when: False
 
 - name: Erasing partitions and labels from the journal device(s)
   command: ceph-disk zap {{ item }}
   when: zap_devices and raw_multi_journal
   with_items: raw_journal_devices
+  changed_when: False
index 16f95d803a7912432b5e7be268dad86ca18ef5ec..5bfaf55a8c1db899b58bc8833a6466a637c1bdd9 100644 (file)
 - name: Enable multiverse repo for Trusty
   command: "apt-add-repository multiverse"
   when: ansible_lsb.codename in ['trusty'] and not http_100_continue
+  changed_when: False
 
 # Disable the repo when we are using the Ceph repo for 100-continue packages
 - name: Disable multiverse repo for Trusty
   command: "apt-add-repository -r multiverse"
   when: ansible_lsb.codename in ['trusty'] and http_100_continue
+  changed_when: False
 
 # If using 100-continue, add Ceph dev key
 - name: Install the Ceph development repository key
   with_items:
     - a2enmod rewrite
     - a2enmod fastcgi
+  changed_when: False
 
 - name: Install Rados Gateway vhost
   template: >
   ignore_errors: True
   notify:
     - restart apache2
+  changed_when: False
 
 - name: Install s3gw.fcgi script
   template: >
index dab4f080eccc465c586e756ffc36ec7cd7a38996..51108639076942043a79030704fec401b1f21185 100644 (file)
@@ -14,6 +14,7 @@
 
 - name: Add special fastcgi repository
   command: rpm -ivh http://pkgs.repoforge.org/rpmforge-release/rpmforge-release-0.5.3-1.el6.rf.x86_64.rpm
+  changed_when: False
 
 - name: "Install Apache and fastcgi"
   yum: >
index cc3bf9edd80e6777f6f27458f45af2d849ecd4c0..5bf69816fb6c58342d1751d44f2cc0dca8bdef43 100644 (file)
@@ -9,3 +9,4 @@
 - name: Start Ceph REST API
   shell: "nohup ceph-rest-api &"
   when: restapi_status.rc != 0
+  changed_when: False
index 25a586daff22f1203a05678ea95401811da84e1b..bc7325ce3ca00ece82cfa08817fe2efbe70cef46 100644 (file)
@@ -27,6 +27,7 @@
     - done
     - upstart
   when: ansible_distribution == "Ubuntu"
+  changed_when: False
 
 - name: Activate Ceph REST API with sysvinit
   file: >