ldomb / ansible-role-sat6register Goto Github PK
View Code? Open in Web Editor NEWRegister a host via ansible to satellite 6
Register a host via ansible to satellite 6
I am new to Ansible so please forgive me if my issue is something self inflicted. I am running Ansible 2.4.2.0 and trying to use the sat6register module to register a rhel7 server to Sat6.
My ansible command:
ansible-playbook -i inventory default-rhel.yml
This results in:
ERROR! Syntax Error while loading YAML.
The error appears to have been in '/etc/ansible/roles/sat6register/tasks/main.yml': line 41, column 21, but may
be elsewhere in the file depending on the exact syntax problem.
The offending line appears to be:
state: present
activationkey: {{ activationkey }}
^ here
We could be wrong, but this one looks like it might be an issue with
missing quotes. Always quote template expression brackets when they
start a value. For instance:
with_items:
- {{ foo }}
Should be written as:
with_items:
- "{{ foo }}"
exception type: <class 'yaml.constructor.ConstructorError'>
exception: while constructing a mapping
in "", line 41, column 20
found unacceptable key (unhashable type: 'AnsibleMapping')
in "", line 41, column 21
I started my testing by setting my custom Activation key, Org, and sat6_fqdn in the playbook but got the same types of errors so I ran it with just defaults. With defaults wouldn't result in a registration but should fail in some other way than with a syntax error.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.