Ansible

milan, (edited )
@milan@social.tchncs.de avatar

so i take that host from the #ansible playbook specific inventory file and copy it into my fancy new globally specified inventory. while the dedicated inventory file still works, the global one now throws "Failed to connect to the host via ssh: Connection closed by UNKNOWN port 65535" for one of my hosts wtf. The only obvious different thing is that i call a children:

all:
children:
theservice:
hosts:

lateron specified in all->hosts

thehost:

milan,
@milan@social.tchncs.de avatar

nvm it also says no more hosts left while the other one is marked with "ok" huh?

jpmens,
@jpmens@mastodon.social avatar

Interested in 's Event-Driven thing and/or in Ansible on Windows?

Saturday July 6th, in Nieuwegein (NL) near Utrecht, Ismail Dhaoui of Red Hat will do a presentation about Event Driven Ansible (EDA).

After lunch Ton Kersten will guide through an Ansible and Windows workshop

https://www.meetup.com/ansible-benelux/events/301290316/

and if I as a non-organizer may add: if you say you'll come, please do. There are typically many no-shows and food has to be thrown away which is dreadful.

leanpub,
@leanpub@mastodon.social avatar

The ProLUG Big Book of Labs by Scott Champine is free with a Leanpub Reader membership! Or you can buy it for $20.00! http://leanpub.com/theprolugbigbookoflabs

milan, (edited )
@milan@social.tchncs.de avatar

is there really no equivalent to -e@~/myvarsfile.yaml that i can put in the .ansible.cfg? (right now i am using this with the vault)

leanpub,
@leanpub@mastodon.social avatar

The ProLUG Big Book of Labs by Scott Champine is free with a Leanpub Reader membership! Or you can buy it for $20.00! http://leanpub.com/theprolugbigbookoflabs

xahteiwi, (edited )
@xahteiwi@mastodon.social avatar

I don't think there's a generally correct answer for this question (please refrain from attempting to convince me or others otherwise), rather I'm curious about your own hunch.

Please complete this sentence:

's primary language is _______.”

(Boosts OK)

MaZderMind,
@MaZderMind@chaos.social avatar

@xahteiwi @fink Yaml and that’s not a language but an accident waiting to happen.

xahteiwi,
@xahteiwi@mastodon.social avatar

@MaZderMind Can I ask you to re-read the bit in parentheses.

jpmens,
@jpmens@mastodon.social avatar

quote: "Here's a cool one-liner for you:"

fulax,
@fulax@piaille.fr avatar

@jpmens Shouldn't it read -m shell? Maybe it's on purpose :)

jpmens,
@jpmens@mastodon.social avatar

@fulax it should be shell, yes, but this is so awful it doesn’t matter ;)

leanpub,
@leanpub@mastodon.social avatar

The ProLUG Big Book of Labs by Scott Champine is free with a Leanpub Reader membership! Or you can buy it for $20.00! http://leanpub.com/theprolugbigbookoflabs

preya,
@preya@mastodon.social avatar

Trying to automatically/programmatically replicate stacks on the same host. E.g. I have an application that requires multiple containers, and I want to replicate the WHOLE application with its own volumes, networks, subdomain, etc. Any pointers on how to do that? ? Please don't say .

alper,
@alper@rls.social avatar

@preya I don’t really know why you want this but I’ve never really seen this work for any serious setup.

jpmens, (edited )
@jpmens@mastodon.social avatar

Observant people might have noticed that the Bullhorn 136 was not written by @cybette

🙂

Edit: s/136/137/

scy,
@scy@chaos.social avatar

Are there people among you who have used both(!) and personally?

I’m currently using Salt for some of my personal & freelance infrastructure, but it feels like it’s losing the popularity battle, and I think about switching to Ansible.

I usually run Salt agent-less, local-only (config repo cloned to the machine). I assume that’s possible with Ansible, too?

How declarative is Ansible these days? I want to define target states, the system should figure out how to get there.

svbito,

@scy After 10 years with ansible and 2 with salt: I wouldn’t start anything new with ansible. Though it’s a lot easier at first and the simple (and rigid) structure helps a lot with learning, anything slightly more complex than the examples can lead to ugly workarounds. It’s absolutely great for simple and local stuff, but for anything distributed or complex, I‘d prefer the flexibility of salt. If you are already familiar with salt, I think there is little to be gained by switching to ansible.

scy,
@scy@chaos.social avatar

@svbito Thanks a lot for that detailed answer!

flohoff,
@flohoff@c.im avatar

Does anyone have a simple idea of using a gopass output as an vault instead of just as the password TO a vault.

So i'd like to put all variable settings e.g. a yaml into my gopass and include it instead of putting vaults into git repos.

I fail to find a (compatible) way of including variables from script output, or using an external vault application in ansible.

I already use a gopass script to fetch the vaults password, but i feel its a bit clumpsy to maintain a vault in the ansible git, and maintain the vault password in the gopass git.

@jpmens ?

flohoff,
@flohoff@c.im avatar

@jpmens gopass is basically a git/gpg command line based vault. Possible team password management. You can store arbitrary files in there although thought as a keepass similar password manager.

Got it to work with 10 lines of python in a vars plugin.

New customer using user logins + sudo and i am not going to type my sudo password over and over again using their ansible stuff.

My sudo password is in my gopass, and ansible may access it.

Thanks so far.

schenklklopfer, German
@schenklklopfer@chaos.social avatar

Wenn ich mit einen Ordner mit Dateien auf einen Server kopiere, warum dauert das so lange?

152 kleine Dateien und der kopiert da fast 3 Minuten...

ascherbaum,
@ascherbaum@mastodon.social avatar

@schenklklopfer wie genau kopierst du die Dateien?

LinuxGeek46,

Ansible #2 How to create an Ansible Playbook https://www.both.org/?p=5087 ,

jriou,
@jriou@hachyderm.io avatar

Segfault when running the #Ansible apt module to remove wifi and Bluetooth related packages on my raspberry pi. But no problem using the equivalent apt commands. That's weird.

Anyway, this raspberry pi ("pilote") needs to be upgraded (Debian 10 to 12). A perfect time to install it from scratch and use Ansible.

As promised in my talk at #SCaLE, I've done a big refacto of this repository to publish it on github. Soon™ 🤞🏻

ara,

A love letter to the community package: simplicity is a feature

https://ara.recordsansible.org/blog/2024/04/26/simplicity-is-a-feature/

geerlingguy,
@geerlingguy@mastodon.social avatar

Ubuntu 24.04 Noble Numbat's here—and so is my ansible testing container for it! https://hub.docker.com/r/geerlingguy/docker-ubuntu2404-ansible

opensuse,
@opensuse@fosstodon.org avatar

#Uyuni 2024.03, is now available. This update introduces Confidential Computing with #Attestation, an enhanced #CVE Audit, security fixes for #Ansible, and more. Review the release notes for more detailed information. https://www.uyuni-project.org/pages/stable-version.html#releasenotes

markstos,
@markstos@urbanists.social avatar

Today in , I'm investigating why I got alerted that my aren't running.

The first task is determine if the backups really aren't running or whether there's a problem with monitoring/alerting.

I used to set up to backup to .

I think I'll start by checking in BackBlaze to see how fresh the backups are. 🧵

markstos,
@markstos@urbanists.social avatar

🧵 I've got a fresh backup running for the service that wasn't set up before and I'll check my metrics tomorrow.

The role I'm using is: https://github.com/roles-ansible/ansible_role_restic

The backup completed and I see fresh metrics in AWS Cloudwatch Metrics, but not in my Dashboard I just made. Sigh.

vwbusguy,
@vwbusguy@mastodon.online avatar

@markstos That's awesome! I'm also backing up mine with Backblaze via restic, but I'm doing mine old school with a bash script in crontab.

ansible,

There's an interesting discussion happening in the forum that we'd like you all to participate in, regarding the future of the Ansible community package (aka what you get if you pip install ansible).

Join the discussion: https://forum.ansible.com/t/future-of-the-ansible-community-package/4902

me,
@me@social.taupehat.com avatar

I really wish #ansible module devs would make up their minds about how to pass stuff to it. So like the packages module? Pass it a list of packages, super easy
ansible.builtin.packages:

  • foo
  • bar
  • baz
    state: present

But say you want to create a bunch of directories? Well, sucks for you - the file module doesn't work that way:
ansible.builtin.file:
path: "{{item}}"
owner: larted
group: luser
mode: "0755"
state: directory
with_items:

  • "/haha"
  • "/fuck"
  • "/consistency"

And these are both BUILTIN modules. Seriously folks, make up your fucking minds. Shit like this makes being a #sysadmin pointlessly difficult.

mskoett,

@me those two are doing things very differently.

Ansible.builtin.packages installs all the packages in one invocation. I.e. it's the equivalent of apt-get install foo bar baz.

Your example with ansible.builtin.file is using a loop construct iterating over a list of directories to create them one by one. The with_items is generic feature of Ansible and not something the file module is implementing. You could do the same when installing packages.

ascherbaum,
@ascherbaum@mastodon.social avatar

@mskoett @me Except when you do that with installing packages, it complains. Had to rewrite a couple of tasks because of that.

dustinrue,
@dustinrue@chateaude.luxe avatar

#Ansible #AWX looks great in Safari

dustinrue,
@dustinrue@chateaude.luxe avatar

I find it annoying that #ansible #awx is installed using an operator. What are people doing that they would adding or removing AWX instances so that an operator makes sense vs a normal Helm based workflow? What am I missing?

dustinrue,
@dustinrue@chateaude.luxe avatar

Mild sense does it make now. It is running Ansible to install AWX….very odd #ansible #awx

dustinrue,
@dustinrue@chateaude.luxe avatar

Had to change the config, now I wait for Ansible to run again. I swear to you all I started using Kube and avoiding Ansible for this very reason. #ansible #awx

leanpub,
@leanpub@mastodon.social avatar

The course Learn Ansible by 250+ Examples by Luca Berton is on sale on Leanpub! Its suggested price is $59.99; get it for $26.39 with this coupon: https://leanpub.com/sh/CmdZCAMX

ansible,

📯 The Bullhorn 134

Releases:

  • Ansible 9.4.0
  • AWX 24.1.0 & Operator 2.14.0
  • ansible-core 2.14.15, 2.15.10 & 2.16.5

Collections:

  • community.routeros 2.14.0
  • community.general 8.5.0, 7.5.6 & 6.6.8

Participate:

  • vote on team rep in Steering Committee
  • discuss docker_compose deprecation
  • review collection inclusion requests
  • help with easyfix issues
  • Ansible München meetup

More:

  • Ansible Lightspeed update
  • Steampunk doc update

➡️ https://forum.ansible.com/t/the-bullhorn-134/4631

  • All
  • Subscribed
  • Moderated
  • Favorites
  • Ansible
  • DreamBathrooms
  • everett
  • osvaldo12
  • magazineikmin
  • thenastyranch
  • rosin
  • normalnudes
  • Youngstown
  • Durango
  • slotface
  • ngwrru68w68
  • kavyap
  • mdbf
  • InstantRegret
  • JUstTest
  • ethstaker
  • GTA5RPClips
  • tacticalgear
  • Leos
  • anitta
  • modclub
  • khanakhh
  • cubers
  • cisconetworking
  • megavids
  • provamag3
  • tester
  • lostlight
  • All magazines