On 26.06.2019 20:54, 'Michael Raugh - NOAA Affiliate' via Ansible Project wrote:
I am hoping to leverage the wisdom of the group here. For over a year, I have been running a playbook that starts out by pulling variables from a
separate role:

# Load required variables
- import_role:
    name: sitevars
  tags: always

Basically, that extracts the things that vary by site, like the DHCP
server, monitoring server, Nessus scanner, NTP, etc.  It's worked
flawlessly for something line 15 months. Then, today, I tried to add a new
site.

-rw-rw-r--+ 1 mraugh mraugh   28 Jan  2 14:44 main.yml
-rw-rw-r--+ 1 mraugh mraugh  918 Jun 25 10:59 sitevars-Asheville.yml
-rw-rw-r--+ 1 mraugh mraugh 1150 Jun 25 10:59 sitevars-Boulder.yml
-rw-rw-r--+ 1 mraugh mraugh  971 Jun 25 10:59 sitevars-NJO.yml
-rw-rw-r--+ 1 mraugh mraugh 1076 Jun 25 10:59 sitevars-NSOF.yml
-rw-rw-r--+ 1 mraugh mraugh 1138 Jun 25 10:59 sitevars-Red_Forest.yml
-rw-rw-r--+ 1 mraugh mraugh 1138 Jun 25 10:59 sitevars-Silver_Spring.yml
-rw-rw-r--+ 1 mraugh mraugh  918 Jun 25 10:59 sitevars-STAR.yml
-rw-rw-r--+ 1 mraugh mraugh  922 Jun 25 10:59 sitevars-Stennis.yml
-rw-rw-r--+ 1 mraugh mraugh  927 Jun 26 13:54 sitevars-Wallops.yml

This doesn't help us much since this could be a listing of any directory, the placement of the directory i crucial for Ansible. Maybe the files is duplicated in several directory, and only one of them is the correct directory.
Maybe your main.yml is incorrect written.
But is does say that you are using ACL.


Wallops (sitevars-Wallops.yml) is the new file. But ansible insists that
it's not there:
fatal: [atlas-wal]: FAILED! => {"ansible_facts": {"site": {}},
"ansible_included_var_files": [], "changed": false, "message": "Could not
find or access 'sitevars-Wallops.yml'\nSearched
in:\n\t/etc/ansible/roles/sitevars/vars/sitevars-Wallops.yml\n\t/etc/ansible/roles/sitevars/sitevars-Wallops.yml\n\t/etc/ansible/tower/baselines/roles/rhel7-base/vars/sitevars-Wallops.yml\n\t/etc/ansible/tower/baselines/roles/rhel7-base/sitevars-Wallops.yml\n\t/etc/ansible/roles/sitevars/tasks/vars/sitevars-Wallops.yml\n\t/etc/ansible/roles/sitevars/tasks/sitevars-Wallops.yml\n\t/etc/ansible/tower/baselines/vars/sitevars-Wallops.yml\n\t/etc/ansible/tower/baselines/sitevars-Wallops.yml
on the Ansible Controller.\nIf you are using a module and expect the file
to exist on the remote, see the remote_src option"}
fatal: [bran-wal]: FAILED! => {"ansible_facts": {"site": {}},
"ansible_included_var_files": [], "changed": false, "message": "Could not
find or access 'sitevars-Wallops.yml'\nSearched
in:\n\t/etc/ansible/roles/sitevars/vars/sitevars-Wallops.yml\n\t/etc/ansible/roles/sitevars/sitevars-Wallops.yml\n\t/etc/ansible/tower/baselines/roles/rhel7-base/vars/sitevars-Wallops.yml\n\t/etc/ansible/tower/baselines/roles/rhel7-base/sitevars-Wallops.yml\n\t/etc/ansible/roles/sitevars/tasks/vars/sitevars-Wallops.yml\n\t/etc/ansible/roles/sitevars/tasks/sitevars-Wallops.yml\n\t/etc/ansible/tower/baselines/vars/sitevars-Wallops.yml\n\t/etc/ansible/tower/baselines/sitevars-Wallops.yml
on the Ansible Controller.\nIf you are using a module and expect the file
to exist on the remote, see the remote_src option"}

So is this one of the paths that the files is in?


It's not griping about the content, but it seems convinced that the file
does not exist, even though it plainly does.  Any ideas?

Since your are using ACL, ACL might deny you access to the file so you should check the actual permission.


--
Kai Stian Olstad

--
You received this message because you are subscribed to the Google Groups "Ansible 
Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/e7de2458d35657fdc76b871605c1d9ec%40olstad.com.
For more options, visit https://groups.google.com/d/optout.
  • [ansible-project] Fai... 'Michael Raugh - NOAA Affiliate' via Ansible Project
    • Re: [ansible-pro... Kai Stian Olstad
      • Re: [ansible... 'Michael Raugh - NOAA Affiliate' via Ansible Project
        • Re: [ans... Kai Stian Olstad
          • Re: ... 'Michael Raugh - NOAA Affiliate' via Ansible Project
            • ... 'Michael Raugh - NOAA Affiliate' via Ansible Project

Reply via email to