--- - name: CentOS packages and firewall rules block: - name: Manage the dovecot related tcp/udp ports firewalld: port={{ item.port }}/{{ item.protocol }} zone={{ item.zone }} permanent={{ item.permanent | default(True) }} state={{ item.state }} immediate=True with_items: '{{ cdh_el_firewalld_ports }}' when: firewalld_enabled - name: Download the Cloudera yum repository definition get_url: url={{ cdh_centos_repo_url }} dest=/etc/yum.repos.d/cloudera-manager.repo - name: Install the CDH Manager server and daemons yum: pkg={{ cdh_cm_el_packages }} state=present when: cdh_manager_install - name: Install the CDH Manager agents and daemons yum: pkg={{ cdh_agent_packages }} state=present when: not cdh_manager_install tags: [ 'cdh', 'hadoop' ]