Deze website werkt beter met JavaScript.
Beginscherm
Verkennen
Help
Inloggen
10sr
/
dotfiles-mirror
kopie van
https://github.com/10sr/dotfiles.git
Volgen
1
Ster
0
Vork
0
Code
Kwesties
0
Publicaties
0
Wiki
Activiteit
Bladeren bron
use set_fact for finding sshd_config
pull/1/head
10sr
10 jaren geleden
bovenliggende
ecca55a1d5
commit
c5e2407086
1 gewijzigde bestanden
met
toevoegingen van 9
en
2 verwijderingen
Zij-aan-zij weergave
Diff opties
Statistieken weergeven
Download Patch-bestand
Download Diff-bestand
+9
-2
ansible/sshd_config.yml
+ 9
- 2
ansible/sshd_config.yml
Bestand weergeven
@@ -1,9 +1,16 @@
---
- hosts: all
vars:
conf: /etc/ssh/sshd_config
#
vars:
#
conf: /etc/ssh/sshd_config
sudo: yes
tasks:
- name: find sshd_config
set_fact: conf={{item}}
with_first_found:
- /etc/ssh/sshd_config
- /etc/sshd_config
- name: assert sshd_config found
assert: conf is defined
- name: Protocol 2
lineinfile: dest={{conf}}
regexp="^(#)?Protocol"
Schrijf
Voorbeeld
Laden…
Annuleren
Opslaan