- name: Add repository yum_repository: name: epel description: EPEL YUM repo baseurl: https://download.fedoraproject.org/pub/epel/$releasever/$basearch/ I added the leading
---
- hosts: client01,
And ended up with this (baseurl modified to internal yum server) - other edits based on error messages I was getting
---
- hosts: client01
tasks:
- name: Add repository
yum_repository:
name: epel
description: EPEL YUM repo
baseurl: http://10.0.0.1/CentOS7-EPEL
I'm getting this error now, and not sure where to go with it from here.
[admin@kickstart ansible]$ ansible-playbook repo-playbook3.yml
ERROR! Syntax Error while loading YAML.
mapping values are not allowed in this context
The error appears to have been in '/etc/ansible/repo-playbook3.yml': line 5, column 21, but may
be elsewhere in the file depending on the exact syntax problem.
The offending line appears to be:
- name: Add repository
yum_repository:
^ here
(I should add that I'm new to ansible and am a little fuzzy on if this kind of thing is more appropriate for a playbook or a role.)
PG
--
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 ansible-proje...@googlegroups.com.
To post to this group, send email to ansible...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/d680fd46-d17f-438a-8112-a9ba72328039%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/CAD8N0v_ZSQRfQEPSAJoK%3DqAUqJ%2B%2BcVvLBQDSb403D%3Df2-ngfRw%40mail.gmail.com.
--
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 ansible-proje...@googlegroups.com.
To post to this group, send email to ansible...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/f6e6765c652959d4478a34c40f388dc4%40olstad.com.