kutsyk_alexander

joined 2 years ago
[–] [email protected] 2 points 1 month ago (1 children)

Can you share a content of /etc/fstab file? It is the first place I would check in your situation.

 

cross-posted from: https://lemm.ee/post/61082772

[–] [email protected] 2 points 3 months ago* (last edited 3 months ago) (1 children)

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 a host_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.

[–] [email protected] 1 points 3 months ago (3 children)

Which module do you use for inserting the template?

[–] [email protected] 3 points 4 months ago* (last edited 4 months ago) (1 children)

Install tlp for better battery performance.

sudo apt install tlp tlp-rdw
[–] [email protected] 9 points 4 months ago (3 children)
[–] [email protected] 14 points 5 months ago (1 children)
[–] [email protected] 4 points 6 months ago
sudo swapon /dev/zram0

Source

[–] [email protected] 33 points 1 year ago (3 children)
[–] [email protected] 11 points 1 year ago (1 children)

If you like Factorio you definitely like Mindustry

[–] [email protected] 10 points 1 year ago (1 children)

Open source. Because for me this term is the most general.

view more: next ›