HON95 3 years ago
parent
commit
e9dd543e27
2 changed files with 9 additions and 0 deletions
  1. 5 0
      config/automation/ansible.md
  2. 4 0
      config/linux-server/applications.md

+ 5 - 0
config/automation/ansible.md

@@ -51,6 +51,11 @@ interpreter_python = /usr/bin/python3
 host_key_checking = false
 ```
 
+## Templating
+
+- YAML files:
+    - Conditionals and stuff tend to mess up indentation. Specify `#jinja2: trim_blocks:False` to avoid that. This will also make the output a little uglier with empty lines in place of unsatisfied conditionals and stuff though.
+
 ## Troubleshooting
 
 ### Ansible Freezes when Connecting

+ 4 - 0
config/linux-server/applications.md

@@ -934,6 +934,10 @@ See [Team Fortress 2 (TF2)](/config/game-servers/tf2/).
        ```
     1. In `/etc/fstab`, add: `//<share> <mountpoint> cifs vers=3.1.1,uid=<uid>,gid=<gid>,credentials=<file>,iocharset=utf8 0 0`
     1. Test it: `mount -a`
+- Add automounted share:
+    1. Set up the permanent share (see steps above).
+    1. In the `/etc/fstab` entry, add `,noauto,x-systemd.automount,x-systemd.idle-timeout=30`.
+    1. Reload systemd automounting: `systemctl daemon-reload && systemctl restart remote-fs.target`
 
 ## smartmontools