mirror of
https://github.com/willshersystems/ansible-sshd
synced 2024-11-09 21:23:29 +01:00
commit
29eec237be
5 changed files with 6 additions and 71 deletions
|
@ -1,14 +1,14 @@
|
|||
---
|
||||
repos:
|
||||
- repo: https://github.com/adrienverge/yamllint.git
|
||||
rev: v1.26.3
|
||||
rev: v1.27.1
|
||||
hooks:
|
||||
- id: yamllint
|
||||
files: \.(yaml|yml)$
|
||||
types: [file, yaml]
|
||||
entry: yamllint --strict
|
||||
- repo: https://github.com/ansible/ansible-lint.git
|
||||
rev: v6.2.2
|
||||
rev: v6.5.2
|
||||
hooks:
|
||||
- id: ansible-lint
|
||||
files: \.(yaml|yml)$
|
||||
|
|
27
CHANGELOG
27
CHANGELOG
|
@ -1,27 +0,0 @@
|
|||
0.2.5 23 January 2014 Matt Willsher <matt@willsher.systems>
|
||||
- Fix for sftp-server install on Debian removing openssh-sftp-server. Thanks to @ricbra
|
||||
- Reinstate defaults.yml as fall through
|
||||
0.2.4 13 January 2014 Matt Willsher <matt@willsher.systems>
|
||||
- Allow reload to be skipped
|
||||
- Test for OS support
|
||||
- Documentation improvements
|
||||
0.2.3 13 January 2014 Matt Willsher <matt@willsher.systems>
|
||||
- Fixed HostbasedAuthentication typo
|
||||
0.2.2 13 January 2014 Matt Willsher <matt@willsher.systems>
|
||||
- Add warnings to README
|
||||
- Tidy up naming
|
||||
- Remove blacklist packages from Debian based distros
|
||||
0.2.1 12 January 2014 Matt Willsher <matt@willsher.systems>
|
||||
- Standardise README.md format
|
||||
- Add basic Travis CI testing
|
||||
- Add networking metadata type
|
||||
0.2.0 04 January 2014 Matt Willsher <matt@willsher.systems>
|
||||
- Change var file search order
|
||||
- Add Arch Linux defaults (thanks GitHub user @brenix).
|
||||
- A number of typo fixes (again, thanks @brenix), including UsePrivilegeSeparation.
|
||||
- A Ubuntu precise defaults.
|
||||
- A Debian jessie defaults.
|
||||
- Unknown Ubuntu and Debian versions default to wheezy defaults.
|
||||
- License to LGPL
|
||||
0.1.0 25 December 2014 Matt Willsher <matt@willsher.systems>
|
||||
- Initial release
|
37
Vagrantfile
vendored
37
Vagrantfile
vendored
|
@ -1,37 +0,0 @@
|
|||
|
||||
# vi: set ft=ruby :
|
||||
|
||||
VAGRANTFILE_API_VERSION = "2"
|
||||
|
||||
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
|
||||
|
||||
config.vm.synced_folder ".", "/vagrant", type: "nfs"
|
||||
|
||||
config.vm.define "ubuntu" do |ubuntu|
|
||||
ubuntu.vm.box = "boxcutter/ubuntu1604"
|
||||
# ubuntu.vm.provision "shell", inline: <<-SHELL
|
||||
# sudo add-apt-repository -y ppa:ansible/ansible
|
||||
# sudo apt-get update -qq
|
||||
# sudo apt-get -qq install ansible
|
||||
# SHELL
|
||||
end
|
||||
|
||||
config.vm.define "centos7" do |centos|
|
||||
centos.vm.box = "centos/7"
|
||||
|
||||
centos.vm.provision "shell", inline: <<-SHELL
|
||||
sudo yum install -y libselinux-python
|
||||
SHELL
|
||||
end
|
||||
|
||||
config.vm.provision "shell", inline: <<-SHELL
|
||||
test -e /vagrant/tests/roles/ansible-sshd || ln -s /vagrant /vagrant/tests/roles/ansible-sshd
|
||||
SHELL
|
||||
|
||||
config.vm.provision "ansible_local" do |ansible|
|
||||
# ansible.config_file = "tests/ansible.cfg"
|
||||
ansible.playbook = "tests/test.yml"
|
||||
ansible.install = true
|
||||
end
|
||||
|
||||
end
|
|
@ -61,7 +61,7 @@
|
|||
{{ __sshd_verify_hostkeys_default | to_json }}
|
||||
{% endif %}
|
||||
{% elif __sshd_hostkeys_from_config | from_json is string %}
|
||||
{{ [ __sshd_hostkeys_from_config | from_json ] | to_json }}
|
||||
{{ [__sshd_hostkeys_from_config | from_json] | to_json }}
|
||||
{% else %}
|
||||
{{ __sshd_hostkeys_from_config }}
|
||||
{% endif %}
|
||||
|
@ -70,7 +70,6 @@
|
|||
{% endif %}
|
||||
block:
|
||||
- name: Make sure hostkeys are available
|
||||
# noqa var-spacing
|
||||
ansible.builtin.shell: |
|
||||
set -eu
|
||||
if set -o | grep pipefail 2>&1 /dev/null ; then
|
||||
|
@ -130,7 +129,7 @@
|
|||
when: sshd_config_namespace is not none
|
||||
|
||||
rescue:
|
||||
- name: re-raise the error
|
||||
- name: Re-raise the error
|
||||
ansible.builtin.fail:
|
||||
msg: "{{ ansible_failed_result }}"
|
||||
always:
|
||||
|
|
|
@ -25,7 +25,7 @@
|
|||
group: root
|
||||
mode: "0644"
|
||||
notify: reload_sshd
|
||||
when: sshd_install_service|bool
|
||||
when: sshd_install_service | bool
|
||||
|
||||
- name: Service enabled and running
|
||||
ansible.builtin.service:
|
||||
|
@ -39,7 +39,7 @@
|
|||
|
||||
# Due to ansible bug 21026, cannot use service module on RHEL 7
|
||||
- name: Enable service in chroot
|
||||
ansible.builtin.command: systemctl enable {{ sshd_service }} # noqa 303
|
||||
ansible.builtin.command: systemctl enable {{ sshd_service }} # noqa command-instead-of-module
|
||||
when:
|
||||
- ansible_connection == 'chroot'
|
||||
- ansible_os_family == 'RedHat'
|
||||
|
|
Loading…
Reference in a new issue