Git Product home page Git Product logo

Comments (4)

jimbydamonk avatar jimbydamonk commented on July 3, 2024

On RHEL when I include the role I do something like this:

- name: Configure instance 
  hosts: all
  roles:
   - role: ansible-consul   
      consul_is_server: true
      consul_is_ui: true
      consul_install_dnsmasq: true
      consul_install_consulate: true
      consul_datacenter: "{{ region }}"
      consul_bootstrap: false 
      consul_node_name: "{{ inventory_hostname }}"
      consul_use_systemd: false
      consul_use_upstart: false
      consul_use_initd: true
      consul_ui_server_port: 8086
      consul_join_at_start: true
      nginx_user: nginx 

That seems to work for me.

from ansible-consul.

haraldkoch avatar haraldkoch commented on July 3, 2024

@jimbydamonk: it works but I still think it's an issue - we shouldn't have to know the username that nginx runs under in a playbook, and your example would fail if you had a mixed bag of RedHat and Ubuntu hosts.

@savagegus: geerlingguy's nginx role claims to support both Debian and RedHat - is it still necessary to use franklinkim's nginx role?

from ansible-consul.

duality72 avatar duality72 commented on July 3, 2024

I would like to understand why the franklinkim.nginx role is processed at all such that it sets the nginx_user value. Isn't the whole point of the conditional on the dependency that it only runs IF the OS family is Debian?

from ansible-consul.

duality72 avatar duality72 commented on July 3, 2024

Well, that didn't take me long to figure out why.

ansible/ansible#15254

Basically a conditional on a role dependency just adds a conditional to every task in that role, so it doesn't prevent vars and other things from getting set. Not really what you would think would happen. Please go to the issue and vote!

from ansible-consul.

Related Issues (20)

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.