Comments (8)
@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.
@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.
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.
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.
One more question: do you have a construction to add new users to the VPN Server without reconfiguring it fully?
from sa-vpn-softether.
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.
Generally idempotency is issue here, thus let's leave Issue open.
from sa-vpn-softether.
Addressed in 1.1.1
from sa-vpn-softether.
Related Issues (4)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from sa-vpn-softether.