fgci-org / fgci-ansible

:microscope: Collection of the Finnish Grid and Cloud Infrastructure Ansible playbooks
MIT License
54 stars 18 forks source link

Current HEAD of devel branch doesn't work #207

Closed jabl closed 6 years ago

jabl commented 6 years ago

Doing a "git pull" followed by "bash tools/pullReqs.sh" results in

- ansible-role-hosts-int (v1.0.2) was installed successfully
- changing role ansible-role-chrony from v1.1.1 to v1.1.1
- extracting ansible-role-chrony to /root/fgci/fgci-ansible/roles/ansible-role-chrony
- ansible-role-chrony (v1.1.1) was installed successfully
- changing role ansible-role-lldpd from v1.1.2 to v1.1.2
- extracting ansible-role-lldpd to /root/fgci/fgci-ansible/roles/ansible-role-lldpd
- ansible-role-lldpd (v1.1.2) was installed successfully
- changing role ansible-role-singularity from v1.0.1 to v1.0.1
- extracting ansible-role-singularity to /root/fgci/fgci-ansible/roles/ansible-role-singularity
- ansible-role-singularity (v1.0.1) was installed successfully
 [WARNING]: Found both group and host with same name: grid

ERROR! role definitions must contain a role name

The error appears to have been in '/root/fgci/fgci-ansible/install.yml': line 18, column 5, but may
be elsewhere in the file depending on the exact syntax problem.

The offending line appears to be:

  roles:
  - { role: watermark-release, tags: [ 'always' ]  }
    ^ here
jabl commented 6 years ago

Happens also when trying to run a playbook, e.g.

# ansible-playbook admin.yml 
 [WARNING]: Found both group and host with same name: grid

ERROR! role definitions must contain a role name

The error appears to have been in '/root/fgci/fgci-ansible/admin.yml': line 14, column 5, but may
be elsewhere in the file depending on the exact syntax problem.

The offending line appears to be:

  roles:
  - { role: watermark-release, tags: [ 'always' ] }
    ^ here
jabl commented 6 years ago

Ok, found it. You have a some weird non-space whitespace character (hooray for unicode?) between the "{" and "role: waterblahblah".

jabl commented 6 years ago

Ahah, so the hex code is "c2 a0" which is the utf-8 encoding of "non-breaking space" vs. a normal space which has the utf-8 encoded hex value "20".

tiggi commented 6 years ago

On 2017-11-06 14:08, Janne Blomqvist wrote:

Ahah, so the hex code is "c2 a0" which is the utf-8 encoding of "non-breaking space" vs. a normal space which has the utf-8 encoded hex value "20".

Fixing !

You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/CSCfi/fgci-ansible/issues/207#issuecomment-342130064, or mute the thread https://github.com/notifications/unsubscribe-auth/AKKJ6l75QFlsN4jbuxWFAwqPL_VuhHMJks5szvbBgaJpZM4QTHho.

-- Ulf Tigerstedt || Senior systems specialist CSC Oy || NeIC NT1 / NDGF GSM +358503818558 Johannesbergsvägen 17 || Närpes || Finland

tiggi commented 6 years ago

Fixed by two commits to devel a few seconds ago.