1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53
--- # tasks file for phpmyadmin - name: include assert.yml include_tasks: assert.yml run_once: yes - name: install requirements package: name: "{{ phpmyadmin_requirements }}" state: present notify: - restart httpd - name: modify selinux settings seboolean: name: httpd_unified state: yes persistent: yes when: - ansible_selinux.status is defined - ansible_selinux.status == "enabled" - name: create directory file: path: "{{ phpmyadmin_httpd_directory }}/phpmyadmin" state: directory owner: "{{ phpmyadmin_httpd_user }}" group: "{{ phpmyadmin_httpd_group }}" mode: "755" - name: download and unpack software unarchive: src: "{{ phpmyadmin_archive }}" dest: "{{ phpmyadmin_httpd_directory }}/phpmyadmin/" remote_src: yes extra_opts: ['--strip-components=1'] mode: "0755" - name: create directories file: path: "{{ phpmyadmin_httpd_directory }}/phpmyadmin/tmp" state: directory owner: "{{ phpmyadmin_httpd_user }}" group: "{{ phpmyadmin_httpd_group }}" mode: "0750" - name: configure software template: src: config.inc.php.j2 dest: "{{ phpmyadmin_httpd_directory }}/phpmyadmin/config.inc.php" owner: "{{ phpmyadmin_httpd_user }}" group: "{{ phpmyadmin_httpd_group }}" mode: "640"