ansible-role-strongswan icon indicating copy to clipboard operation
ansible-role-strongswan copied to clipboard

Error ansible 2.0

Open resyst-it opened this issue 8 years ago • 2 comments

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.

resyst-it avatar Apr 12 '17 16:04 resyst-it

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?

jonathanio avatar Apr 12 '17 16:04 jonathanio

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.

resyst-it avatar Apr 12 '17 20:04 resyst-it