--- - name: look for OS::TripleO::NodeTLSData config shell: | grep "OS::TripleO::NodeTLSData" {{ item }} ignore_errors: true register: tls_config_envs loop: "{{ initial_env_file.stdout_lines }}" - name: set tls_node_data fact set_fact: tls_node_data: "{{ item.item }}" when: item.stdout|length > 0 loop: "{{ tls_config_envs.results }}" - name: Remove NodeTLSData service replace: path: "{{ tls_node_data }}" regexp: '(\s+)(OS::TripleO::NodeTLSData).*' replace: '\1OS::TripleO::NodeTLSData: OS::Heat::None' when: tls_node_data is defined