Hotfixes after galaxy upload

master
Oleg "Zmey!" Vasiliev 2020-06-04 00:57:09 +03:00
parent 84dbf2030c
commit 04e8eb2bef
6 changed files with 25 additions and 8 deletions

View File

@ -4,6 +4,10 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
## [0.1.1] - 2020-06-04
### Fixed
- Most ansible-lint warnings from galaxy.ansible.com
## [0.1.0] - 2020-06-04 ## [0.1.0] - 2020-06-04
### Added ### Added
- Inital release - Inital release

View File

@ -3,4 +3,4 @@
networkd: networkd:
# Could be "restart", "reload" or "nothing" # Could be "restart", "reload" or "nothing"
networkd_apply_action: "restart" networkd_apply_action: "restart"

View File

@ -14,4 +14,4 @@
- name: networkd | Do nothing - name: networkd | Do nothing
debug: debug:
msg: "Not applying new configuration due to selected action." msg: "Not applying new configuration due to selected action."

View File

@ -1,3 +1,4 @@
---
galaxy_info: galaxy_info:
author: 'Oleg "Zmey!" Vasiliev' author: 'Oleg "Zmey!" Vasiliev'
description: An Ansible role for configuring systemd-networkd description: An Ansible role for configuring systemd-networkd
@ -6,10 +7,22 @@ galaxy_info:
min_ansible_version: 2.4 min_ansible_version: 2.4
# Totally not a full list...
platforms:
- name: Archlinux
versions: all
- name: Ubuntu
versions:
- 16.04
- 18.04
- 20.04
- name: Debian
versions:
- 9
galaxy_tags: galaxy_tags:
- networking - networking
- networkd - networkd
- systemd - systemd
dependencies: [] dependencies: []

View File

@ -4,7 +4,7 @@
template: template:
src: networkd.j2 src: networkd.j2
dest: "/etc/systemd/network/{{ item.priority }}-{{ item.name }}.link" dest: "/etc/systemd/network/{{ item.priority }}-{{ item.name }}.link"
mode: 644 mode: 0644
owner: root owner: root
group: root group: root
with_items: "{{ networkd.link | default([]) }}" with_items: "{{ networkd.link | default([]) }}"
@ -15,7 +15,7 @@
template: template:
src: networkd.j2 src: networkd.j2
dest: "/etc/systemd/network/{{ item.priority }}-{{ item.name }}.netdev" dest: "/etc/systemd/network/{{ item.priority }}-{{ item.name }}.netdev"
mode: 644 mode: 0644
owner: root owner: root
group: root group: root
with_items: "{{ networkd.netdev | default([]) }}" with_items: "{{ networkd.netdev | default([]) }}"
@ -26,7 +26,7 @@
template: template:
src: networkd.j2 src: networkd.j2
dest: "/etc/systemd/network/{{ item.priority }}-{{ item.name }}.network" dest: "/etc/systemd/network/{{ item.priority }}-{{ item.name }}.network"
mode: 644 mode: 0644
owner: root owner: root
group: root group: root
with_items: "{{ networkd.network | default([]) }}" with_items: "{{ networkd.network | default([]) }}"

View File

@ -15,7 +15,7 @@
template: template:
src: resolv.conf.j2 src: resolv.conf.j2
dest: /etc/resolv.conf dest: /etc/resolv.conf
mode: 644 mode: 0644
owner: root owner: root
group: root group: root
when: networkd_resolv_conf_content is defined when: networkd_resolv_conf_content is defined