Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error ansible 2.0 #1

Open
resyst-it opened this issue Apr 12, 2017 · 2 comments
Open

Error ansible 2.0 #1

resyst-it opened this issue Apr 12, 2017 · 2 comments
Assignees

Comments

@resyst-it
Copy link

Hello,

I have an error when i use your playbook in the readme. I have this error :

ERROR! Syntax Error while loading YAML.


The error appears to have been in '/etc/ansible/playbook/test.yml': line 5, column 1, but may
be elsewhere in the file depending on the exact syntax problem.

The offending line appears to be:


---
^ here

Do you have an idea ?

Thank you.

@jonathanio
Copy link
Owner

This seems to be an error within the Playbook itself, rather than the role. Can you post the playbook test.yml so I can take a look?

@resyst-it
Copy link
Author

I just want to test your playbook so i just copy you playbook exemple.
I git clone you repository that's why the role is ansible-role-strongswan

- hosts: ipsec_server
  roles:
     - { role: ansible-role-strongswan, tags: ['ipsec'] }

---
strongswan_hosts:
  - name: example
    conn:
      auto: route
      type: tunnel
      authby: psk
      keyexchange: ikev2
      lifetime: 3h
      ike: aes256gcm16-modp2048!
      esp: aes256gcm16-modp2048!
      ikelifetime: 24h
    left:
      address: 12.34.56.78
      protoport: 47
    right:
      address: 87.65.43.21
      protoport: 47
    secret: something_needs_to_go_here

I don't know where is my mistake.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants