Giter VIP home page Giter VIP logo

ansible-haproxy's People

Contributors

attiliogreco avatar c-galli avatar jsecchiero avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

ansible-haproxy's Issues

Dependancy Issue: KeepAlive

An issue arises when trying to use the example playbook. The version of keepalived (3.0.0) fails:

Ansible Version:

$ ansible --version
ansible 2.7.10
  config file = /etc/ansible/ansible.cfg
  configured module search path = ['/home/$USER/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules']
  ansible python module location = /usr/lib/python3.7/site-packages/ansible
  executable location = /usr/bin/ansible
  python version = 3.7.3 (default, Mar 26 2019, 21:43:19) [GCC 8.2.1 20181127]

Playbook:

$ cat playbooks/forwarder.yml
---
- hosts: all
  sudo: true
  roles:
    - name: entercloudsuite.haproxy 
      haproxy_conf: |
        listen web
          mode http
          bind *:80
          default-server port 80
          server web-0 1.1.1.1:80 check

Error:

TASK [oefenweb.keepalived : update configuration file] *************************
task path: /home/$USER/.ansible/roles/oefenweb.keepalived/tasks/main.yml:163
<127.0.0.1> ESTABLISH SSH CONNECTION FOR USER: vagrant
<127.0.0.1> SSH: EXEC ssh -o UserKnownHostsFile=/dev/null -o IdentitiesOnly=yes -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o
<127.0.0.1> (0, b'', b'')
fatal: [default]: FAILED! => {
    "changed": false,
    "msg": "AnsibleUndefinedVariable: 'dict object' has no attribute 'iteritems'"
}

I believe this is because of a structure change in the dependency module. However upgrading the KeepAlive module from 3.0.0 -> 3.2.0 (latests) seems to fix it. I'll put in a PR for that.

CentOS / EL

Would you take a PR to add support for CentOS / EL to this role?

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.