Skip to content
This repository was archived by the owner on May 27, 2024. It is now read-only.

Commit 036c3b8

Browse files
committed
ran ansible-lint: stripped trailing spaces
1 parent 934dd82 commit 036c3b8

File tree

45 files changed

+86
-86
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

45 files changed

+86
-86
lines changed

jboss-standalone/roles/jboss-standalone/handlers/main.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
- name: restart jboss
2+
- name: restart jboss
33
service: name=jboss state=restarted
44

55
- name: restart iptables

jboss-standalone/roles/jboss-standalone/tasks/main.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
copy: src=jboss-as-standalone.sh dest=/etc/init.d/jboss mode=0755
3333

3434
- name: Enable JBoss to be started at boot
35-
service: name=jboss enabled=yes state=started
35+
service: name=jboss enabled=yes state=started
3636

3737
- name: deploy iptables rules
3838
template: src=iptables-save dest=/etc/sysconfig/iptables

jboss-standalone/site.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
2-
# This playbook deploys a simple standalone JBoss server.
2+
# This playbook deploys a simple standalone JBoss server.
33

4-
- hosts: jboss-servers
4+
- hosts: jboss-servers
55
remote_user: root
66

77
roles:

lamp_haproxy/roles/common/tasks/main.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
- name: Create the GPG key for EPEL
1414
copy: src=RPM-GPG-KEY-EPEL-6 dest=/etc/pki/rpm-gpg
1515

16-
- name: install some useful nagios plugins
16+
- name: install some useful nagios plugins
1717
yum: name={{ item }} state=present
1818
with_items:
1919
- nagios-nrpe
@@ -23,7 +23,7 @@
2323
- nagios-plugins-load
2424
- nagios-plugins-disk
2525

26-
- name: Install ntp
26+
- name: Install ntp
2727
yum: name=ntp state=present
2828
tags: ntp
2929

lamp_haproxy/roles/db/tasks/main.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313

1414
- name: Create Mysql configuration file
1515
template: src=my.cnf.j2 dest=/etc/my.cnf
16-
notify:
16+
notify:
1717
- restart mysql
1818

1919
- name: Start Mysql Service

lamp_haproxy/roles/nagios/handlers/main.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
# handlers for nagios
2+
# handlers for nagios
33
- name: restart httpd
44
service: name=httpd state=restarted
55

lamp_haproxy/roles/nagios/tasks/main.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
# This will install nagios
33

4-
- name: install nagios
4+
- name: install nagios
55
yum: pkg={{ item }} state=present
66
with_items:
77
- nagios

lamp_haproxy/roles/web/tasks/main.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22

33
# httpd is handled by the base-apache role upstream
4-
- name: Install php and git
4+
- name: Install php and git
55
yum: name={{ item }} state=present
66
with_items:
77
- php

lamp_haproxy/site.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
# This playbook deploys the whole application stack in this site.
2+
# This playbook deploys the whole application stack in this site.
33

44
# Apply common configuration to all hosts
55
- hosts: all
@@ -13,7 +13,7 @@
1313
roles:
1414
- db
1515

16-
# Configure and deploy the web servers. Note that we include two roles here,
16+
# Configure and deploy the web servers. Note that we include two roles here,
1717
# the 'base-apache' role which simply sets up Apache, and 'web' which includes
1818
# our example web application.
1919
- hosts: webservers

lamp_simple/roles/common/tasks/main.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
# This playbook contains common plays that will be run on all nodes.
33

4-
- name: Install ntp
4+
- name: Install ntp
55
yum: name=ntp state=present
66
tags: ntp
77

lamp_simple/roles/db/tasks/main.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515

1616
- name: Create Mysql configuration file
1717
template: src=my.cnf.j2 dest=/etc/my.cnf
18-
notify:
18+
notify:
1919
- restart mysql
2020

2121
- name: Start Mysql Service
+2-2
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
---
22
# These tasks are responsible for copying the latest dev/production code from
3-
# the version control system.
3+
# the version control system.
44

55
- name: Copy the code from repository
66
git: repo={{ repository }} dest=/var/www/html/
77

8-
- name: Creates the index.php file
8+
- name: Creates the index.php file
99
template: src=index.php.j2 dest=/var/www/html/index.php

lamp_simple/roles/web/tasks/install_httpd.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,5 +20,5 @@
2020
service: name=httpd state=started enabled=yes
2121

2222
- name: Configure SELinux to allow httpd to connect to remote database
23-
seboolean: name=httpd_can_network_connect_db state=true persistent=yes
23+
seboolean: name=httpd_can_network_connect_db state=true persistent=yes
2424
when: sestatus.rc != 0

lamp_simple/site.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
# This playbook deploys the whole application stack in this site.
2+
# This playbook deploys the whole application stack in this site.
33

44
- name: apply common configuration to all nodes
55
hosts: all

lamp_simple_rhel7/roles/common/tasks/main.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
# This playbook contains common plays that will be run on all nodes.
33

4-
- name: Install ntp
4+
- name: Install ntp
55
yum: name=ntp state=present
66
tags: ntp
77

lamp_simple_rhel7/roles/db/tasks/main.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,12 @@
1414

1515
- name: Create Mysql configuration file
1616
template: src=my.cnf.j2 dest=/etc/my.cnf
17-
notify:
17+
notify:
1818
- restart mariadb
19-
19+
2020
- name: Create MariaDB log file
2121
file: path=/var/log/mysqld.log state=touch owner=mysql group=mysql mode=0775
22-
22+
2323
- name: Create MariaDB PID directory
2424
file: path=/var/run/mysqld state=directory owner=mysql group=mysql mode=0775
2525

Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
---
22
# These tasks are responsible for copying the latest dev/production code from
3-
# the version control system.
3+
# the version control system.
44

55
- name: Copy the code from repository
66
git: repo={{ repository }} dest=/var/www/html/
77

8-
- name: Creates the index.php file
8+
- name: Creates the index.php file
99
template: src=index.php.j2 dest=/var/www/html/index.php

lamp_simple_rhel7/site.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
# This playbook deploys the whole application stack in this site.
2+
# This playbook deploys the whole application stack in this site.
33

44
- name: apply common configuration to all nodes
55
hosts: all

language_features/conditionals_part2.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
# this is a demo of conditional executions using 'when' statements, which can skip
3-
# certain tasks on machines/platforms/etc where they do not apply.
3+
# certain tasks on machines/platforms/etc where they do not apply.
44

55
- hosts: all
66
remote_user: root
@@ -28,7 +28,7 @@
2828
- name: "do this if I have one of these SSNs"
2929
shell: /bin/true
3030
when: ssn in [ 8675309, 8675310, 8675311 ]
31-
31+
3232
- name: "do this if a variable named hippo is NOT defined"
3333
shell: /bin/true
3434
when: hippo is not defined

language_features/delegation.yml

+6-6
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
---
22

33
# this is an example of how we can perform actions on a given host on behalf of all the hosts
4-
# in a play.
4+
# in a play.
55
#
66
# The two main uses of this would be signalling an outage window for hosts that
77
# we are going to start upgrading, or to take a machine out of rotation by talking to a load
8-
# balancer.
8+
# balancer.
99
#
1010
# This example cheats by replacing the load balancer script with the 'echo' command,
1111
# leaving actual communication with the load balancer as an exercise to the reader. In reality,
12-
# you could call anything you want, the main thing is that it should do something with
12+
# you could call anything you want, the main thing is that it should do something with
1313
# {{inventory_hostname}}
1414

1515
# NOTE: see batch_size_control.yml for an example of the 'serial' keyword, which you almost certainly
@@ -20,19 +20,19 @@
2020
serial: 5
2121

2222
tasks:
23-
23+
2424
- name: take the machine out of rotation
2525
command: echo taking out of rotation {{inventory_hostname}}
2626
delegate_to: 127.0.0.1
2727

28-
# here's an alternate notation if you are delegating to 127.0.0.1, you can use 'local_action'
28+
# here's an alternate notation if you are delegating to 127.0.0.1, you can use 'local_action'
2929
# instead of 'action' and leave off the 'delegate_to' part.
3030
#
3131
# - local_action: command echo taking out of rotation {{inventory_hostname}}
3232

3333
- name: do several things on the actual host
3434
command: echo hi mom {{inventory_hostname}}
35-
35+
3636
- name: put machine back into rotation
3737
command: echo inserting into rotation {{inventory_hostname}}
3838
delegate_to: 127.0.0.1

language_features/environment.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212

1313
# here we make a variable named "env" that is a dictionary
1414
vars:
15-
env:
15+
env:
1616
HI: test2
1717
http_proxy: http://proxy.example.com:8080
1818

@@ -26,7 +26,7 @@
2626
HI: test1
2727

2828
# here we are using the $env variable above
29-
29+
3030
- shell: echo $HI
3131
environment: env
3232

language_features/eucalyptus-ec2.yml

+6-6
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
---
22
# This playbook is an example for deploying multiple instances into
33
# EC2/Euca and "doing something" with them.
4-
#
4+
#
55
# - uses the ec2 and ec2_vol module.
66
#
77
# Run this with ansible-playbook and supply the private key for your
88
# EC2/Euca user (to access the instance in the second play), e.g:
9-
#
9+
#
1010
# ansible-playbook eucalyptus-ec2-deploy.yml -v --private-key=/path/to/ec2/pri/key
1111
#
1212

@@ -26,12 +26,12 @@
2626
# Launch 5 instances with the following parameters. Register the output.
2727

2828
tasks:
29-
- name: Launch instance
29+
- name: Launch instance
3030
ec2: keypair={{keypair}} group={{security_group}}
3131
instance_type={{instance_type}} image={{image}}
32-
wait=true count=5
32+
wait=true count=5
3333
register: ec2
34-
34+
3535
# Use with_items to add each instances public IP to a new hostgroup for use in the next play.
3636

3737
- name: Add new instances to host group
@@ -60,6 +60,6 @@
6060
tasks:
6161
- name: Ensure NTP is up and running
6262
service: name=ntpd state=started
63-
63+
6464
- name: Install Apache Web Server
6565
yum: pkg=httpd state=latest

language_features/group_by.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
- hosts: CentOS-6.3
2929

3030
tasks:
31-
31+
3232
- name: ping all CentOS 6.3 hosts
3333
ping:
3434

language_features/loop_plugins.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,6 @@
1515
- file: dest=/etc/fooapp state=directory
1616

1717
- copy: src={{ item }} dest=/etc/fooapp/ owner=root mode=600
18-
with_fileglob: /playbooks/files/fooapp/*
18+
with_fileglob: /playbooks/files/fooapp/*
1919

2020

language_features/prompts.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -34,14 +34,14 @@
3434
prompt: "Product release version"
3535
default: "my_default_version"
3636
private: no
37-
37+
3838
- name: "my_password2"
3939
prompt: "Enter password2"
4040
private: yes
41-
encrypt: "md5_crypt"
41+
encrypt: "md5_crypt"
4242
confirm: yes
4343
salt_size: 7
44-
salt: "foo"
44+
salt: "foo"
4545

4646
# this is just a simple example to show that vars_prompt works, but
4747
# you might ask for a tag to use with the git module or perhaps

language_features/register_logic.yml

+6-6
Original file line numberDiff line numberDiff line change
@@ -10,15 +10,15 @@
1010
tasks:
1111

1212
# it is possible to save the result of any command in a named register. This variable will be made
13-
# available to tasks and templates made further down in the execution flow.
13+
# available to tasks and templates made further down in the execution flow.
1414

1515
- shell: grep hi /etc/motd
1616
ignore_errors: yes
1717
register: motd_result
1818

1919
# and here we access the register. Note that variable is structured data because
2020
# it is a return from the command module. The shell module makes available variables such as
21-
# as 'stdout', 'stderr', and 'rc'.
21+
# as 'stdout', 'stderr', and 'rc'.
2222

2323
# here we run the next action only if the previous grep returned true
2424

@@ -29,17 +29,17 @@
2929

3030
- shell: echo "motd contains the word hi"
3131
when: motd_result.stdout.find('hi') != -1
32-
32+
3333
# or also:
34-
34+
3535
- shell: echo "motd contains word hi"
3636
when: "'hi' in motd_result.stdout"
37-
37+
3838
# you can use 'stdout_lines' to loop over the registered output lines
3939
- name: motd lines matching 'hi'
4040
shell: echo "{{ item }}"
4141
with_items: motd_result.stdout_lines
42-
42+
4343
# you can also split 'stdout' yourself
4444
- name: motd lines matching 'hi'
4545
shell: echo "{{ item }}"

language_features/roletest.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# in Ansible 1.2 and later, roles allow easy best-practices organization of content
1+
# in Ansible 1.2 and later, roles allow easy best-practices organization of content
22
# and maximize shareability of ansible building blocks.
33
#
44
# suppose a playbook applied to a group of hosts includes two roles, foo and bar.
@@ -18,7 +18,7 @@
1818
#
1919
# templates and copy operations also get smarter about where to look for content when using
2020
# roles.
21-
#
21+
#
2222
# as an example, a task in foo/tasks/main.yml could copy or template a file by
2323
# referencing a "src=foo.j2" rather than having to explicitly path src=roles/foo/templates/foo.j2.
2424

@@ -35,7 +35,7 @@
3535

3636
roles:
3737

38-
# a role can be listed flat like this:
38+
# a role can be listed flat like this:
3939
#
4040
# - common
4141
# - webservers

0 commit comments

Comments
 (0)