

0·
2 months agoWhich module do you use for inserting the template?
Which module do you use for inserting the template?
Install tlp for better battery performance.
sudo apt install tlp tlp-rdw
You can try Firejail
sudo swapon /dev/zram0
If you like Factorio you definitely like Mindustry
Open source. Because for me this term is the most general.
htop, midnight commander, nettools (ping, ifconfig), nmap, ssh server
6.27 Gb
Some cat litter fillers are made from silica gel. You can buy it in a pet store.
Only PiHole and Nextcloud
I use Raspberry Pi 4 with connected external HDD and installed Nextcloud
I try some tests based on your description, and I think I got a solution. Try to use host_vars
This is a playbook:
--- - name: Test for lemmy hosts: your_hosts vars: networks: ext: ipv4: "127.0.0.1" tasks: - name: Use template ansible.builtin.template: src: test.j2 dest: "/etc/iptables/rules.v4" owner: root group: root mode: "0644"
This is a template file
test.j2
:{% for rule in rules %} {{ rule }} {% endfor %}
This is a
host2.yml
file in ahost_vars
directory:--- rules: - "-A INPUT -p tcp -s {{ networks['ext']['ipv4'] }} --dport 6000 -j ACCEPT"
For another hosts you can create separate host files with variable
rules
.