Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Playbook fails when installing on Centos 7 where selunx is disabled #1556

Open
ainsofs opened this issue Jun 30, 2020 · 0 comments
Open

Playbook fails when installing on Centos 7 where selunx is disabled #1556

ainsofs opened this issue Jun 30, 2020 · 0 comments
Labels
Subject: Ansible Playbook Related to the maintenance and upkeep associated with an Ansible Playbook for Islandora. Always also Subject:Deployment related to deployment of Islandora. Usually accompanied by the deployment flavour (Ansible/docker)

Comments

@ainsofs
Copy link

ainsofs commented Jun 30, 2020

I get the following error:

fatal: [default]: FAILED! => {"msg": "Unexpected templating type error occurred on ({{ sestatus_out.stdout|regex_search('Current mode.*(permissive|enforcing)')|regex_search('(permissive|enforcing)') }}): expected string or buffer"}

I am installing using ansible to a dev environment with selinux is turned off where sestatus_out.stdout value is below

ok: [default] => {
    "sestatus_out.stdout": "SELinux status:                 disabled\r\n"
}

updating bootstrap.yml to below worked for me

    # Parse sestatus down to one of two options.
    - name: Set selinux permissive fact
      set_fact:
        # selinux_permissive: "{{ sestatus_out.stdout|regex_search('Current mode.*(permissive|enforcing)')|regex_search('(permissive|enforcing)') }}"
        selinux_permissive: "disabled"
      when: ansible_os_family == "RedHat"
@kstapelfeldt kstapelfeldt added Subject:Deployment related to deployment of Islandora. Usually accompanied by the deployment flavour (Ansible/docker) Subject: Ansible Playbook Related to the maintenance and upkeep associated with an Ansible Playbook for Islandora. Always also and removed Ansible labels Sep 25, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Subject: Ansible Playbook Related to the maintenance and upkeep associated with an Ansible Playbook for Islandora. Always also Subject:Deployment related to deployment of Islandora. Usually accompanied by the deployment flavour (Ansible/docker)
Projects
Development

No branches or pull requests

2 participants