From ee977c5bee7ee9782769305c0254b4bd6bf0d040 Mon Sep 17 00:00:00 2001 From: Paul Belanger Date: Thu, 6 Dec 2018 23:17:17 -0500 Subject: [PATCH] Clean up punctuation Change-Id: I11273a5fb23793048b004b8ece4813359bbca8a2 Signed-off-by: Paul Belanger --- tasks/config.yaml | 4 ++-- tasks/install.yaml | 4 ++-- tasks/install/git.yaml | 4 ++-- tasks/install/npm.yaml | 2 +- tasks/main.yaml | 2 +- tasks/pre.yaml | 4 ++-- tasks/service.yaml | 20 ++++++++++---------- 7 files changed, 20 insertions(+), 20 deletions(-) diff --git a/tasks/config.yaml b/tasks/config.yaml index c791ed7..0718ff1 100644 --- a/tasks/config.yaml +++ b/tasks/config.yaml @@ -13,7 +13,7 @@ # License for the specific language governing permissions and limitations # under the License. --- -- name: Create required directories. +- name: Create required directories become: yes file: group: "{{ statsd_user_group }}" @@ -24,7 +24,7 @@ - /etc/statsd - /var/log/statsd -- name: Install statsd configuration. +- name: Install statsd configuration become: yes template: dest: "{{ statsd_file_config_js_dest }}" diff --git a/tasks/install.yaml b/tasks/install.yaml index d49aa23..1e20d50 100644 --- a/tasks/install.yaml +++ b/tasks/install.yaml @@ -12,12 +12,12 @@ # License for the specific language governing permissions and limitations # under the License. --- -- name: Define statsd_build_depends. +- name: Define statsd_build_depends set_fact: statsd_build_depends: "{{ __statsd_build_depends | list }}" when: statsd_build_depends is not defined -- name: Ensure dependencies are installed. +- name: Ensure dependencies are installed become: yes package: name: "{{ statsd_build_depends }}" diff --git a/tasks/install/git.yaml b/tasks/install/git.yaml index f5dccd1..cb8e7ef 100644 --- a/tasks/install/git.yaml +++ b/tasks/install/git.yaml @@ -12,7 +12,7 @@ # License for the specific language governing permissions and limitations # under the License. --- -- name: Git clone statsd. +- name: Git clone statsd become: yes become_user: "{{ statsd_user_name }}" git: @@ -21,7 +21,7 @@ update: "{{ statsd_git_update|default(omit) }}" version: "{{ statsd_git_version }}" -- name: Set statsd_npm_name to local git repo. +- name: Set statsd_npm_name to local git repo set_fact: statsd_npm_name: "{{ statsd_git_dest }}" diff --git a/tasks/install/npm.yaml b/tasks/install/npm.yaml index 07f7f56..c040481 100644 --- a/tasks/install/npm.yaml +++ b/tasks/install/npm.yaml @@ -13,7 +13,7 @@ # License for the specific language governing permissions and limitations # under the License. --- -- name: Install statsd using npm. +- name: Install statsd using npm become: yes npm: name: "{{ statsd_npm_name }}" diff --git a/tasks/main.yaml b/tasks/main.yaml index cb2c421..b839d3c 100644 --- a/tasks/main.yaml +++ b/tasks/main.yaml @@ -12,7 +12,7 @@ # License for the specific language governing permissions and limitations # under the License. --- -- name: Include OS-specific variables. +- name: Include OS-specific variables include_vars: "{{ ansible_os_family }}.yaml" - include: "{{ statsd_task }}.yaml" diff --git a/tasks/pre.yaml b/tasks/pre.yaml index e1867e2..63d8596 100644 --- a/tasks/pre.yaml +++ b/tasks/pre.yaml @@ -12,12 +12,12 @@ # License for the specific language governing permissions and limitations # under the License. --- -- name: Create group account. +- name: Create group account become: yes group: name: "{{ statsd_user_group }}" -- name: Create user account. +- name: Create user account become: yes user: createhome: yes diff --git a/tasks/service.yaml b/tasks/service.yaml index 8b93a95..b18f825 100644 --- a/tasks/service.yaml +++ b/tasks/service.yaml @@ -12,37 +12,37 @@ # License for the specific language governing permissions and limitations # under the License. --- -- name: Define statsd_file_statsd_service_dest. +- name: Define statsd_file_statsd_service_dest set_fact: statsd_file_statsd_service_dest: "{{ __statsd_file_statsd_service_dest }}" when: statsd_file_statsd_service_dest is not defined -- name: Define statsd_file_statsd_service_mode. +- name: Define statsd_file_statsd_service_mode set_fact: statsd_file_statsd_service_mode: "{{ __statsd_file_statsd_service_mode }}" when: statsd_file_statsd_service_mode is not defined -- name: Define statsd_file_statsd_service_src. +- name: Define statsd_file_statsd_service_src set_fact: statsd_file_statsd_service_src: "{{ __statsd_file_statsd_service_src }}" when: statsd_file_statsd_service_src is not defined -- name: Define statsd_file_statsd_service_config_dest. +- name: Define statsd_file_statsd_service_config_dest set_fact: statsd_file_statsd_service_config_dest: "{{ __statsd_file_statsd_service_config_dest }}" when: statsd_file_statsd_service_config_dest is not defined -- name: Define statsd_file_statsd_service_config_mode. +- name: Define statsd_file_statsd_service_config_mode set_fact: statsd_file_statsd_service_config_mode: "{{ __statsd_file_statsd_service_config_mode }}" when: statsd_file_statsd_service_config_mode is not defined -- name: Define statsd_file_statsd_service_config_src. +- name: Define statsd_file_statsd_service_config_src set_fact: statsd_file_statsd_service_config_src: "{{ __statsd_file_statsd_service_config_src }}" when: statsd_file_statsd_service_config_src is not defined -- name: Install statsd service script into place. +- name: Install statsd service script into place become: yes template: dest: "{{ statsd_file_statsd_service_dest }}" @@ -53,7 +53,7 @@ register: statsd_file_statsd_service when: statsd_file_statsd_service_manage -- name: Create statsd service config directory. +- name: Create statsd service config directory become: yes file: group: "{{ statsd_file_statsd_service_config_group }}" @@ -62,7 +62,7 @@ state: directory when: statsd_file_statsd_service_config_manage -- name: Install statsd service config into place. +- name: Install statsd service config into place become: yes template: dest: "{{ statsd_file_statsd_service_config_dest }}" @@ -73,7 +73,7 @@ register: statsd_file_statsd_service_config when: statsd_file_statsd_service_config_manage -- name: Enable statsd service. +- name: Enable statsd service become: yes systemd: daemon_reload: "{{ statsd_service_statsd_daemon_reload }}"