Skip to content
Permalink
Browse files

Switch to 'package' module to install package.

  • Loading branch information...
Frzk committed Mar 18, 2019
1 parent b96f12e commit 17886c6f7711d82f40e9e4175db2d98e28fc3cf4
Showing with 6 additions and 22 deletions.
  1. +6 −4 tasks/main.yml
  2. +0 −6 tasks/setup-Archlinux.yml
  3. +0 −6 tasks/setup-Debian.yml
  4. +0 −6 tasks/setup-RedHat.yml
@@ -8,7 +8,7 @@
- "{{ ansible_distribution }}-{{ ansible_distribution_major_version }}.yml"
- "{{ ansible_distribution }}.yml"
- "{{ ansible_os_family }}.yml"
skip: yes
skip: true

- name: Set up timezone
timezone:
@@ -36,13 +36,15 @@
notify: Restart chrony

- name: Install
include_tasks: "setup-{{ ansible_os_family }}.yml"
package:
name: "chrony"
state: present

- name: Disable conflicting services
service:
name: "{{ item }}"
state: stopped
enabled: no
enabled: false
register: disable_service_result
failed_when: (disable_service_result is failed)
and ('Could not find the requested service' not in disable_service_result.msg)
@@ -58,5 +60,5 @@
- name: Enable service
service:
name: "{{ chrony_service_name }}"
enabled: yes
enabled: true
...

This file was deleted.

Oops, something went wrong.

This file was deleted.

Oops, something went wrong.

This file was deleted.

Oops, something went wrong.

0 comments on commit 17886c6

Please sign in to comment.
You can’t perform that action at this time.