From 9e631bde2d480acc3fcc5355bfd3130f77f66235 Mon Sep 17 00:00:00 2001 From: SebClem Date: Fri, 4 Mar 2022 14:44:55 +0100 Subject: [PATCH] :sparkles: Prettier --- .travis.yml | 4 ++-- .vscode/extensions.json | 6 +++++- .vscode/settings.json | 4 ++-- README.md | 21 +++++++-------------- defaults/main.yml | 3 +-- handlers/main.yml | 2 +- meta/main.yml | 6 ++++-- tasks/main.yml | 16 ++++++++-------- vars/main.yml | 4 ++-- 9 files changed, 32 insertions(+), 34 deletions(-) diff --git a/.travis.yml b/.travis.yml index 36bbf62..121cc49 100644 --- a/.travis.yml +++ b/.travis.yml @@ -9,7 +9,7 @@ sudo: false addons: apt: packages: - - python-pip + - python-pip install: # Install ansible @@ -26,4 +26,4 @@ script: - ansible-playbook tests/test.yml -i tests/inventory --syntax-check notifications: - webhooks: https://galaxy.ansible.com/api/v1/notifications/ \ No newline at end of file + webhooks: https://galaxy.ansible.com/api/v1/notifications/ diff --git a/.vscode/extensions.json b/.vscode/extensions.json index 290752b..b683cda 100644 --- a/.vscode/extensions.json +++ b/.vscode/extensions.json @@ -1,3 +1,7 @@ { - "recommendations": ["redhat.ansible", "dhoeric.ansible-vault", "esbenp.prettier-vscode"] + "recommendations": [ + "redhat.ansible", + "dhoeric.ansible-vault", + "esbenp.prettier-vscode" + ] } diff --git a/.vscode/settings.json b/.vscode/settings.json index 95a5416..2faa62e 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -4,6 +4,6 @@ "hosts": "yaml", "*.yml": "ansible" }, -"ansible.ansible.useFullyQualifiedCollectionNames": true, -"editor.formatOnSave": true + "ansible.ansible.useFullyQualifiedCollectionNames": true, + "editor.formatOnSave": true } diff --git a/README.md b/README.md index 225dd44..b282b65 100644 --- a/README.md +++ b/README.md @@ -1,25 +1,20 @@ -Role Name -========= +# Role Name A brief description of the role goes here. -Requirements ------------- +## Requirements Any pre-requisites that may not be covered by Ansible itself or the role should be mentioned here. For instance, if the role uses the EC2 module, it may be a good idea to mention in this section that the boto package is required. -Role Variables --------------- +## Role Variables A description of the settable variables for this role should go here, including any variables that are in defaults/main.yml, vars/main.yml, and any variables that can/should be set via parameters to the role. Any variables that are read from other roles and/or the global scope (ie. hostvars, group vars, etc.) should be mentioned here as well. -Dependencies ------------- +## Dependencies A list of other roles hosted on Galaxy should go here, plus any details in regards to parameters that may need to be set for other roles, or variables that are used from other roles. -Example Playbook ----------------- +## Example Playbook Including an example of how to use your role (for instance, with variables passed in as parameters) is always nice for users too: @@ -27,12 +22,10 @@ Including an example of how to use your role (for instance, with variables passe roles: - { role: username.rolename, x: 42 } -License -------- +## License BSD -Author Information ------------------- +## Author Information An optional section for the role authors to include contact information, or a website (HTML is not allowed). diff --git a/defaults/main.yml b/defaults/main.yml index 381afed..1ae5fbe 100644 --- a/defaults/main.yml +++ b/defaults/main.yml @@ -1,7 +1,6 @@ --- # defaults file for ansible-renovate-role - renovate_image_name: renovate/renovate renovate_image_tag: slim renovate_git_endpoint: "" @@ -11,4 +10,4 @@ renovate_github_token: "" renovate_log_level: info renovate_bot_username: renovate-bot renovate_webhook_secret: "" -renovate_docker_user_group: "1000:1000" \ No newline at end of file +renovate_docker_user_group: "1000:1000" diff --git a/handlers/main.yml b/handlers/main.yml index 93529b4..1c29477 100644 --- a/handlers/main.yml +++ b/handlers/main.yml @@ -8,4 +8,4 @@ - name: Reload cron service: name: cron - state: reloaded \ No newline at end of file + state: reloaded diff --git a/meta/main.yml b/meta/main.yml index c572acc..54734a3 100644 --- a/meta/main.yml +++ b/meta/main.yml @@ -39,7 +39,8 @@ galaxy_info: # - 7 # - 99.99 - galaxy_tags: [] + galaxy_tags: + [] # List tags for your role here, one per line. A tag is a keyword that describes # and categorizes the role. Users find roles by searching for tags. Be sure to # remove the '[]' above, if you add tags to this list. @@ -47,6 +48,7 @@ galaxy_info: # NOTE: A tag is limited to a single word comprised of alphanumeric characters. # Maximum 20 tags per role. -dependencies: [] +dependencies: + [] # List your role dependencies here, one per line. Be sure to remove the '[]' above, # if you add dependencies to this list. diff --git a/tasks/main.yml b/tasks/main.yml index 946be0d..0b4d5f9 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -13,16 +13,16 @@ - name: Install requirements pip: - name: '{{ item.name }}' - executable: '{{ item.exec }}' - loop: '{{ __docker_requirements }}' + name: "{{ item.name }}" + executable: "{{ item.exec }}" + loop: "{{ __docker_requirements }}" -- name: 'Pull renovate image' +- name: "Pull renovate image" docker_image: source: pull - name: '{{ renovate_image_name }}' - tag: '{{ renovate_image_tag }}' - state: 'present' + name: "{{ renovate_image_name }}" + tag: "{{ renovate_image_tag }}" + state: "present" force_source: true - name: Add config file @@ -58,4 +58,4 @@ owner: root group: root mode: u=rw,g=r,o=r - notify: Restart webhook \ No newline at end of file + notify: Restart webhook diff --git a/vars/main.yml b/vars/main.yml index a24dbba..c1a24f7 100644 --- a/vars/main.yml +++ b/vars/main.yml @@ -1,5 +1,5 @@ --- # vars file for ansible-renovate-role -__docker_requirements: +__docker_requirements: - name: docker - exec: pip3 \ No newline at end of file + exec: pip3