Giter Club home page Giter Club logo

Comments (8)

Voronenko avatar Voronenko commented on September 25, 2024

@miguelaferreira Yes, for sure.

Quick question: what business scenarion causes you to re-run play each time?
Depending on answer I will try to address in a most efficient way

from sa-vpn-softether.

miguelaferreira avatar miguelaferreira commented on September 25, 2024

@Voronenko thanks for the quick reply.

I have a play that applies a few roles to a set of machines. It applies roles to manage packages, users, etc. Amongst those roles is sa-vpn-softether that sets up our VPN Server.

I need to run the play again if I need to change something on the machine that is not necessarily related to the VPN Server (e.g install a new OS package).
On the other hand, I also want to run the same play again when I need to add a new user to the VPN Server.

In either case, the play will run the sa-vpn-softether role and reconfigure my VPN Server.
It becomes a lot of work to reconfigure all the VPN clients every time.

from sa-vpn-softether.

Voronenko avatar Voronenko commented on September 25, 2024

Aha, I just apply in a different way
(A) Using ansible tags , i.e.

roles:
   - {  
      name: "runs on create / update",
      tags: 
         - create
         - update
      }
   - {  
      name: "runs on update",
      tags: 
         - update
      }
   - {  
      name: "runs always",
      tags: 
         - always
      }

then I just execute changes to boxes with tag update ;

or 
(B)
just split plays into different box bootstrap play, and application plays.

from sa-vpn-softether.

miguelaferreira avatar miguelaferreira commented on September 25, 2024

That makes sense. I've used Chef for a very long time and got used to the idempotent model. So I usually bake that into the Ansible roles I create. I guess I'll make a PR to your role, or embed your role in a role of mine. Thanks. I'll close this now.

from sa-vpn-softether.

miguelaferreira avatar miguelaferreira commented on September 25, 2024

One more question: do you have a construction to add new users to the VPN Server without reconfiguring it fully?

from sa-vpn-softether.

Voronenko avatar Voronenko commented on September 25, 2024

No at a moment , but this is question of introducing new scenario like
https://github.com/softasap/sa-vpn-softether/blob/master/templates/scenarios/create_hub

but containing only part about adding new users.

from sa-vpn-softether.

Voronenko avatar Voronenko commented on September 25, 2024

Generally idempotency is issue here, thus let's leave Issue open.

from sa-vpn-softether.

Voronenko avatar Voronenko commented on September 25, 2024

Addressed in 1.1.1

from sa-vpn-softether.

Related Issues (4)

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.