Skip to content

Commit

Permalink
removing validate until functions implemented
Browse files Browse the repository at this point in the history
  • Loading branch information
shawndwells committed Jul 13, 2017
1 parent 6434bfe commit 58e630a
Show file tree
Hide file tree
Showing 19 changed files with 19 additions and 19 deletions.
Expand Up @@ -9,7 +9,7 @@
dest: /etc/ssh/sshd_config
regexp: "^Protocol [0-9]"
line: "Protocol 2"
validate: sshd -t -f %s
#validate: sshd -t -f %s
#notify: :reload ssh
tags:
@ANSIBLE_TAGS@
Expand Up @@ -9,7 +9,7 @@
dest: /etc/ssh/sshd_config
regexp: (?i)^#?compression
line: Compression delayed
validate: sshd -t -f %s
#validate: sshd -t -f %s
#notify: restart sshd
tags:
@ANSIBLE_TAGS@
Expand Up @@ -9,6 +9,6 @@
dest="/etc/ssh/sshd_config"
regexp="^PermitEmptyPasswords"
line="PermitEmptyPasswords no"
validate: sshd -t -f %s
#validate: sshd -t -f %s
tags:
@ANSIBLE_TAGS@
Expand Up @@ -9,7 +9,7 @@
dest: /etc/ssh/sshd_config
regexp: (?i)^#?gssapiauthentication
line: GSSAPIAuthentication no
validate: sshd -t -f %s
#validate: sshd -t -f %s
#notify: sshd -t -f %s
tags:
@ANSIBLE_TAGS@
2 changes: 1 addition & 1 deletion shared/templates/static/ansible/sshd_disable_kerb_auth.yml
Expand Up @@ -9,7 +9,7 @@
dest: /etc/ssh/sshd_config
regexp: (?i)^#?kerberosauthentication
line: KerberosAuthentication no
validate: sshd -t -f %s
#validate: sshd -t -f %s
#notify: restart sshd
tags:
@ANSIBLE_TAGS@
2 changes: 1 addition & 1 deletion shared/templates/static/ansible/sshd_disable_rhosts.yml
Expand Up @@ -9,6 +9,6 @@
dest="/etc/ssh/sshd_config"
regexp="^IgnoreRhosts"
line="IgnoreRhosts yes"
validate: sshd -t -f %s
#validate: sshd -t -f %s
tags:
@ANSIBLE_TAGS@
Expand Up @@ -9,6 +9,6 @@
dest="/etc/ssh/sshd_config"
regexp="^RhostsRSAAuthentication"
line="RhostsRSAAuthentication no"
validate: sshd -t -f %s
#validate: sshd -t -f %s
tags:
@ANSIBLE_TAGS@
Expand Up @@ -10,7 +10,7 @@
regexp: "^PermitRootLogin"
line: "PermitRootLogin no"
insertafter: '(?i)^#?authentication'
validate: sshd -t -f %s
#validate: sshd -t -f %s
#notify: restart sshd
tags:
@ANSIBLE_TAGS@
Expand Up @@ -9,7 +9,7 @@
dest: /etc/ssh/sshd_config
regexp: ^IgnoreUserKnownHosts
line: IgnoreUserKnownHosts yes
validate: sshd -t -f %s
#validate: sshd -t -f %s
#notify: restart sshd
tags:
@ANSIBLE_TAGS@
Expand Up @@ -9,6 +9,6 @@
dest="/etc/ssh/sshd_config"
regexp="^PermitUserEnvironment"
line="PermitUserEnvironment no"
validate: sshd -t -f %s
#validate: sshd -t -f %s
tags:
@ANSIBLE_TAGS@
Expand Up @@ -9,7 +9,7 @@
dest: /etc/ssh/sshd_config
regexp: (?i)^#?strictmodes
line: StrictModes yes
validate: sshd -t -f %s
#validate: sshd -t -f %s
#notify: restart sshd
tags:
@ANSIBLE_TAGS@
Expand Up @@ -9,6 +9,6 @@
dest="/etc/ssh/sshd_config"
regexp="^Banner"
line="Banner /etc/issue"
validate: sshd -t -f %s
#validate: sshd -t -f %s
tags:
@ANSIBLE_TAGS@
Expand Up @@ -9,6 +9,6 @@
dest="/etc/ssh/sshd_config"
regexp="^X11Forwarding"
line="X11Forwarding yes"
validate: sshd -t -f %s
#validate: sshd -t -f %s
tags:
@ANSIBLE_TAGS@
2 changes: 1 addition & 1 deletion shared/templates/static/ansible/sshd_print_last_log.yml
Expand Up @@ -5,7 +5,7 @@
dest="/etc/ssh/sshd_config"
regexp="^PrintLastLog"
line="PrintLastLog yes"
validate: sshd -t -f %s
#validate: sshd -t -f %s
#notify: restart sshd
tags:
@ANSIBLE_TAGS@
2 changes: 1 addition & 1 deletion shared/templates/static/ansible/sshd_set_idle_timeout.yml
Expand Up @@ -9,7 +9,7 @@
dest="/etc/ssh/sshd_config"
regexp="^ClientAliveInterval"
line="ClientAliveInterval (ansible-populate sshd_idle_timeout_value)"
validate: sshd -t -f %s
#validate: sshd -t -f %s
#notify: restart sshd
tags:
@ANSIBLE_TAGS@
2 changes: 1 addition & 1 deletion shared/templates/static/ansible/sshd_set_keepalive.yml
Expand Up @@ -9,7 +9,7 @@
dest="/etc/ssh/sshd_config"
regexp="^ClientAliveCountMax"
line="ClientAliveCountMax 0"
validate: sshd -t -f %s
#validate: sshd -t -f %s
#notify: restart sshd
tags:
@ANSIBLE_TAGS@
Expand Up @@ -9,7 +9,7 @@
dest="/etc/ssh/sshd_config"
regexp="^Ciphers"
line="Ciphers aes128-ctr,aes192-ctr,aes256-ctr,aes128-cbc,3des-cbc,aes192-cbc,aes256-cbc"
validate: sshd -t -f %s
#validate: sshd -t -f %s
#notify: restart sshd
tags:
@ANSIBLE_TAGS@
2 changes: 1 addition & 1 deletion shared/templates/static/ansible/sshd_use_approved_macs.yml
Expand Up @@ -9,7 +9,7 @@
dest:"/etc/ssh/sshd_config
regexp: ^MACs
line: MACs hmac-sha2-512,hmac-sha2-256,hmac-sha1
validate: sshd -t -f %s
#validate: sshd -t -f %s
#notify: restart sshd
tags:
@ANSIBLE_TAGS@
Expand Down
Expand Up @@ -9,7 +9,7 @@
dest: /etc/ssh/sshd_config
regexp: (?i)^#?useprivilegeseparation
line: UsePrivilegeSeparation yes
validate: sshd -t -f %s
#validate: sshd -t -f %s
#notify: restart sshd
tags:
@ANSIBLE_TAGS@

3 comments on commit 58e630a

@mpreisler
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

?

validate should work as is, why are you commenting the lines? The only problem is when you mix key: with key= in the same item.

@shawndwells
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

didn't realize I pushed the patch. Tinkering locally and getting all the key= and key: right

@shawndwells
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

will revert shortly

Please sign in to comment.