Git Product home page Git Product logo

Comments (2)

vpack avatar vpack commented on July 3, 2024

I had my playbook setup as below. When I run ansible in a new amazon linux instance, it worked !! ( it skipped the nginx tasks).

consul-server-playbook.yml

  pre_tasks:
  - set_fact:
      ansible_distribution_major_version: "6"
      nginx_user: nginx
  vars:
    consul_use_upstart: false
    consul_install_nginx: false

I am new to Ansible - I guess skipping each of the nginx tasks is the expected behavior when using conditional role dependencies in meta/main.yml.

...
TASK [set_fact] ****************************************************************
ok: [10.120.154.199]

TASK [franklinkim.nginx : include] *********************************************
skipping: [10.120.154.199]

TASK [franklinkim.nginx : include] *********************************************
skipping: [10.120.154.199]

TASK [franklinkim.nginx : include] *********************************************
skipping: [10.120.154.199]

TASK [franklinkim.nginx : include] *********************************************
skipping: [10.120.154.199]

TASK [geerlingguy.nginx : Include OS-specific variables.] **********************
skipping: [10.120.154.199]

TASK [geerlingguy.nginx : Define nginx_user.] **********************************
skipping: [10.120.154.199]

TASK [geerlingguy.nginx : include] *********************************************
skipping: [10.120.154.199]

TASK [geerlingguy.nginx : include] *********************************************
skipping: [10.120.154.199]

TASK [geerlingguy.nginx : include] *********************************************
skipping: [10.120.154.199]

TASK [geerlingguy.nginx : include] *********************************************
skipping: [10.120.154.199]

TASK [geerlingguy.nginx : include] *********************************************
skipping: [10.120.154.199]

TASK [geerlingguy.nginx : Copy nginx configuration in place.] ******************
skipping: [10.120.154.199]

TASK [geerlingguy.nginx : Ensure nginx is started and enabled to start at boot.] ***
skipping: [10.120.154.199]

TASK [joshualund.golang : Download the Go tarball] *****************************
skipping: [10.120.154.199]

TASK [joshualund.golang : Register the current Go version (if any)] ************
skipping: [10.120.154.199]

TASK [joshualund.golang : Extract the Go tarball if Go is not yet installed or not the desired version] ***
skipping: [10.120.154.199]

TASK [joshualund.golang : Add the Go bin directory to the PATH environment variable for all users] ***
skipping: [10.120.154.199]

TASK [joshualund.golang : Set GOPATH for all users] ****************************
skipping: [10.120.154.199]

TASK [savagegus.consul : include] **********************************************
included: /usr/local/etc/ansible/roles/savagegus.consul/tasks/install.yml for 10.120.154.199
...

from ansible-consul.

mattfinlayson avatar mattfinlayson commented on July 3, 2024

Yup, that's the role doing what you want. Glad it worked for you.

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.