diff --git a/CHANGELOG.md b/CHANGELOG.md index c1cf85d..fe89716 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,6 +3,12 @@ This project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html) and [human-readable changelog](https://keepachangelog.com/en/1.0.0/). +## 1.4.5 + +### Fixed + +- add check username length + ## 1.4.4 ### Fixed diff --git a/molecule/default/molecule.yml b/molecule/default/molecule.yml index d4aaf2a..716936c 100644 --- a/molecule/default/molecule.yml +++ b/molecule/default/molecule.yml @@ -3,10 +3,9 @@ dependency: name: galaxy driver: name: docker -lint: - name: yamllint - options: - config-file: .yamllint.yml +lint: | + set -e + yamllint -s . platforms: - name: instance image: 'geerlingguy/docker-${MOLECULE_DISTRO:-centos7}-ansible:latest' diff --git a/tasks/distribution/Windows.yml b/tasks/distribution/Windows.yml index 6365bb8..6f9a396 100644 --- a/tasks/distribution/Windows.yml +++ b/tasks/distribution/Windows.yml @@ -1,6 +1,12 @@ --- # tasks file for arillso.users +- name: 'Windows : check username length' + fail: + msg: 'The username can be a maximum of 20 characters long.' + when: 'item.username|length>20' + with_items: '{{ users }}' + - name: 'Windows : adding users' win_user: name: '{{ item.username }}'