diff --git a/tripleo_ansible/roles/tripleo_ceph_common/tasks/main.yml b/tripleo_ansible/roles/tripleo_ceph_common/tasks/main.yml index 293e79834..e6f1c0dc4 100644 --- a/tripleo_ansible/roles/tripleo_ceph_common/tasks/main.yml +++ b/tripleo_ansible/roles/tripleo_ceph_common/tasks/main.yml @@ -57,3 +57,10 @@ - name: Set common fact set_fact: ceph_common_done: true + +- name: set ceph_ansible_limit to ansible_limit, only if ansible_limit defined + set_fact: + ceph_ansible_limit: "{{ ansible_limit }}" + when: + - (ceph_ansible_limit is not defined) or (ceph_ansible_limit|length == 0) + - (ansible_limit is defined) and (ansible_limit|length > 0) diff --git a/tripleo_ansible/roles/tripleo_ceph_run_ansible/tasks/create_ceph_ansible_remote_tmp.yml b/tripleo_ansible/roles/tripleo_ceph_run_ansible/tasks/create_ceph_ansible_remote_tmp.yml index 23bfbd280..82d5541eb 100644 --- a/tripleo_ansible/roles/tripleo_ceph_run_ansible/tasks/create_ceph_ansible_remote_tmp.yml +++ b/tripleo_ansible/roles/tripleo_ceph_run_ansible/tasks/create_ceph_ansible_remote_tmp.yml @@ -54,6 +54,7 @@ - '{{ playbook_dir }}/ceph-ansible/inventory.yml' - '{% if ansible_python_interpreter is defined %}-e ansible_python_interpreter={{ ansible_python_interpreter }}{% endif %}' - "{{ playbook_dir }}/ceph-ansible/create_ceph_ansible_remote_tmp.yml" + - '{% if ceph_ansible_limit is defined and ceph_ansible_limit|length > 0 %}--limit {{ ceph_ansible_limit }}{% endif %}' ceph_ansible_remote_tmp: '/tmp/ceph_ansible_tmp' - name: run create_ceph_ansible_remote_tmp command diff --git a/tripleo_ansible/roles/tripleo_ceph_uuid/tasks/gather.yml b/tripleo_ansible/roles/tripleo_ceph_uuid/tasks/gather.yml index bacca8774..204216523 100644 --- a/tripleo_ansible/roles/tripleo_ceph_uuid/tasks/gather.yml +++ b/tripleo_ansible/roles/tripleo_ceph_uuid/tasks/gather.yml @@ -29,6 +29,7 @@ - '{{ playbook_dir }}/ceph-ansible/inventory.yml' - '{% if ansible_python_interpreter is defined %}-e ansible_python_interpreter={{ ansible_python_interpreter }}{% endif %}' - '{{ playbook_dir }}/ceph-ansible/nodes_uuid_playbook.yml' + - '{% if ceph_ansible_limit is defined and ceph_ansible_limit|length > 0 %}--limit {{ ceph_ansible_limit }}{% endif %}' - name: run nodes-uuid command # needs become to be able to read the ssh private key