---
# tasks file for installation of node.js on centos
- include: yum_owncloud.yml
- include: modify_php_config.yml
- include: add_database.yml
  when: owncloud_db_add_on_mysql_enable
  tags:
    - database


- name: Check SELinux is installed (if not, occurring error is to be ignored)
  shell: which getenforce
  register: owncloud_which_getenfoce
  changed_when: False
  ignore_errors: yes
# include if SELinux is installed
- include: modify_selinux.yml
  when: owncloud_which_getenfoce.stdout != ""

- include: logs.yml
  tags:
    - logs

- include: backup.yml
  when: owncloud_backup
  tags:
    - backup

---
# tasks file for installation of node.js on centos
- include: yum_owncloud.yml
- include: modify_php_config.yml
- include: add_database.yml
  when: owncloud_db_add_on_mysql_enable
  tags:
    - database


- name: Check SELinux is installed (if not, occurring error is to be ignored)
  shell: which getenforce
  register: owncloud_which_getenfoce
  changed_when: False
  ignore_errors: yes
  always_run: yes

# include if SELinux is installed
- include: modify_selinux.yml
  when: owncloud_which_getenfoce.stdout != ""

- include: logs.yml
  tags:
    - logs

- include: backup.yml
  when: owncloud_backup
  tags:
    - backup

Add always run tu get getenforce binary
Add always run tu get getenforce binary
