57. vars_files
---
ディレクティブ
- hosts: all
user: root
vars:
favcolor: blue
vars_files:
- /vars/external_vars.yml
tasks:
- name: this is just a placeholder
action: command /bin/echo foo
80. -D, --diff
TASK: [Set up sshd_config] ****************************************************
--- before
+++ after
@@ -1,15 +1,15 @@
# Package generated configuration file
# See the sshd_config(5) manpage for details
# What ports, IPs and protocols we listen for
-Port 22
+Port 60223
(省略)
# Authentication:
LoginGraceTime 120
-PermitRootLogin yes
+PermitRootLogin no
StrictModes yes
(省略)
# Change to no to disable tunnelled clear text passwords
-#PasswordAuthentication yes
+PasswordAuthentication no
changed: [192.168.33.11]
PLAY RECAP ********************************************************************
192.168.33.11
: ok=3
changed=2
unreachable=0
failed=0