Code Monkey home page Code Monkey logo

ansible-role-sat6register's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

ansible-role-sat6register's Issues

possible syntax issue

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

defalut-rhel.yml:

  • hosts: all
    roles:
    • role: sat6register
      tasks:
    • name: Install required packages
      ping:

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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.