Loading .pre-commit-config.yaml +1 −1 Original line number Diff line number Diff line Loading @@ -8,7 +8,7 @@ - id: check-merge-conflict - id: flake8 - id: check-symlinks - repo: https://www.shore.co.il/git/ansible-pre-commit - repo: https://github.com/adarnimrod/ansible-pre-commit.git sha: 0fadd691465b97db8992cfc66650f630e433324b hooks: - id: ansible-syntax-check Loading .travis.yml 0 → 100644 +24 −0 Original line number Diff line number Diff line --- language: python python: "2.7" dist: trusty sudo: false group: beta services: [docker] cache: - pip - directories: - $HOME/.pre-commit install: - pip install -r tests/requirements.txt | cat - ansible-galaxy install git+file://$(pwd),$(git rev-parse --abbrev-ref HEAD) -p .molecule/roles - molecule dependency script: - pre-commit run --all-files - molecule test --driver docker notifications: webhooks: https://galaxy.ansible.com/api/v1/notifications/ email: false README.rst +11 −8 Original line number Diff line number Diff line NTP client ########## An Ansible role for installing and configuring an NTP client. .. image:: https://travis-ci.org/adarnimrod/ntp-client.svg?branch=master :target: https://travis-ci.org/adarnimrod/ntp-client Provision an NTP client. Requirements ------------ See :code:`meta/main.yml`, :code:`tests/requirements.yml` and assertions at the top of :code:`tasks/main.yml`. See :code:`meta/main.yml` and assertions at the top of :code:`tasks/main.yml`. Role Variables -------------- Loading @@ -27,21 +29,22 @@ See :code:`tests/playbook.yml`. Testing ------- Testing requires Virtualbox and Vagrant and Python 2.7. Install the Python dependencies, add pre-commit hooks by running: Testing requires Python 2.7 and either Docker or Vagrant and Virtualbox. Install the Python dependencies, dependent roles and roles required for testing: .. code:: shell pip install -r tests/requirements.txt pre-commit install ansible-galaxy install git+file://$(pwd),$(git rev-parse --abbrev-ref HEAD) -p .molecule/roles molecule dependency To run the full test suite: .. code:: shell ansible-galaxy install git+file://$(pwd),$(git rev-parse --abbrev-ref HEAD) -p .molecule/roles molecule test --platform all pre-commit run --all-files molecule test --platform all License ------- Loading ansible.cfg +1 −0 Original line number Diff line number Diff line Loading @@ -5,6 +5,7 @@ retry_files_enabled = False roles_path = .molecule/roles:.molecule/../roles:../:../../ command_warnings = True deprecation_warnings = True callback_whitelist = profile_tasks [ssh_connection] pipelining = True defaults/main.yml +1 −1 Original line number Diff line number Diff line --- # defaults file for ansible-role-ntp-client # defaults file for ntp-client Loading
.pre-commit-config.yaml +1 −1 Original line number Diff line number Diff line Loading @@ -8,7 +8,7 @@ - id: check-merge-conflict - id: flake8 - id: check-symlinks - repo: https://www.shore.co.il/git/ansible-pre-commit - repo: https://github.com/adarnimrod/ansible-pre-commit.git sha: 0fadd691465b97db8992cfc66650f630e433324b hooks: - id: ansible-syntax-check Loading
.travis.yml 0 → 100644 +24 −0 Original line number Diff line number Diff line --- language: python python: "2.7" dist: trusty sudo: false group: beta services: [docker] cache: - pip - directories: - $HOME/.pre-commit install: - pip install -r tests/requirements.txt | cat - ansible-galaxy install git+file://$(pwd),$(git rev-parse --abbrev-ref HEAD) -p .molecule/roles - molecule dependency script: - pre-commit run --all-files - molecule test --driver docker notifications: webhooks: https://galaxy.ansible.com/api/v1/notifications/ email: false
README.rst +11 −8 Original line number Diff line number Diff line NTP client ########## An Ansible role for installing and configuring an NTP client. .. image:: https://travis-ci.org/adarnimrod/ntp-client.svg?branch=master :target: https://travis-ci.org/adarnimrod/ntp-client Provision an NTP client. Requirements ------------ See :code:`meta/main.yml`, :code:`tests/requirements.yml` and assertions at the top of :code:`tasks/main.yml`. See :code:`meta/main.yml` and assertions at the top of :code:`tasks/main.yml`. Role Variables -------------- Loading @@ -27,21 +29,22 @@ See :code:`tests/playbook.yml`. Testing ------- Testing requires Virtualbox and Vagrant and Python 2.7. Install the Python dependencies, add pre-commit hooks by running: Testing requires Python 2.7 and either Docker or Vagrant and Virtualbox. Install the Python dependencies, dependent roles and roles required for testing: .. code:: shell pip install -r tests/requirements.txt pre-commit install ansible-galaxy install git+file://$(pwd),$(git rev-parse --abbrev-ref HEAD) -p .molecule/roles molecule dependency To run the full test suite: .. code:: shell ansible-galaxy install git+file://$(pwd),$(git rev-parse --abbrev-ref HEAD) -p .molecule/roles molecule test --platform all pre-commit run --all-files molecule test --platform all License ------- Loading
ansible.cfg +1 −0 Original line number Diff line number Diff line Loading @@ -5,6 +5,7 @@ retry_files_enabled = False roles_path = .molecule/roles:.molecule/../roles:../:../../ command_warnings = True deprecation_warnings = True callback_whitelist = profile_tasks [ssh_connection] pipelining = True
defaults/main.yml +1 −1 Original line number Diff line number Diff line --- # defaults file for ansible-role-ntp-client # defaults file for ntp-client