Files @ 0a435b5ba2cf
Branch filter:

Location: majic-ansible-roles/testsite/playbooks/roles/phpinfo/tasks/main.yml

branko
MAR-218: Upgrade test site for Ansible 10.x and fix linting errors:

- Disable name checks when importing playbooks into top-level playbook
to avoid naming duplication.
---

- name: Create directory for hosting the application
  ansible.builtin.file:
    dest: "/var/www/phpinfo.{{ testsite_domain }}/htdocs/"
    state: directory
    owner: "admin-phpinfo_{{ testsite_domain_underscores }}"
    group: "web-phpinfo_{{ testsite_domain_underscores }}"
    mode: "02750"

- name: Deploy the index.php
  ansible.builtin.copy:
    src: "index.php"
    dest: "/var/www/phpinfo.{{ testsite_domain }}/htdocs/index.php"
    owner: "admin-phpinfo_{{ testsite_domain_underscores }}"
    group: "web-phpinfo_{{ testsite_domain_underscores }}"
    mode: "0640"