Questions tagged [jinja2]
18 questions
0
votes
1 answer
Ansible webserver backup: pull other host vars to generate backup scripts
I'm using Ansible to manage a fleet of dissimilar cloud linux servers. I built a script that pulls backups down to a backup server via rync over ssh. All of the host vars are managed in host_vars/example.com.yml files, each containing the…
![](../../users/profiles/618255.webp)
DeliriousPuppet
- 1
- 1
0
votes
2 answers
Templating firewalld zones with ansible - issue with xml or vars
Templating firewalld zones with ansible - issue with xml manipulation
I am running into a small bit of confusion for the rule family.
whats in my CORRECTED vars file:
firewalld_zones:
- name: public
short: "Public"
description: "Public…
![](../../users/profiles/615416.webp)
Wipiid
- 1
- 2
0
votes
1 answer
Ansible - copying and editing a remote file at the same time?
In an Ansible role, I'm looking for a way to copy a remote file to a different location, while also replacing the first two lines of the file.
I'm open to other approaches, but my solution involves using slurp to retrieve the file, somehow convert…
![](../../users/profiles/276314.webp)
Kevin Keane
- 860
- 1
- 8
- 13