Prettier

This commit is contained in:
SebClem 2022-03-04 14:44:55 +01:00
parent 25f2495360
commit 9e631bde2d
No known key found for this signature in database
GPG Key ID: 3D8E353F900B1305
9 changed files with 32 additions and 34 deletions

View File

@ -9,7 +9,7 @@ sudo: false
addons: addons:
apt: apt:
packages: packages:
- python-pip - python-pip
install: install:
# Install ansible # Install ansible
@ -26,4 +26,4 @@ script:
- ansible-playbook tests/test.yml -i tests/inventory --syntax-check - ansible-playbook tests/test.yml -i tests/inventory --syntax-check
notifications: notifications:
webhooks: https://galaxy.ansible.com/api/v1/notifications/ webhooks: https://galaxy.ansible.com/api/v1/notifications/

View File

@ -1,3 +1,7 @@
{ {
"recommendations": ["redhat.ansible", "dhoeric.ansible-vault", "esbenp.prettier-vscode"] "recommendations": [
"redhat.ansible",
"dhoeric.ansible-vault",
"esbenp.prettier-vscode"
]
} }

View File

@ -4,6 +4,6 @@
"hosts": "yaml", "hosts": "yaml",
"*.yml": "ansible" "*.yml": "ansible"
}, },
"ansible.ansible.useFullyQualifiedCollectionNames": true, "ansible.ansible.useFullyQualifiedCollectionNames": true,
"editor.formatOnSave": true "editor.formatOnSave": true
} }

View File

@ -1,25 +1,20 @@
Role Name # Role Name
=========
A brief description of the role goes here. 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. 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. 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. 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: 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: roles:
- { role: username.rolename, x: 42 } - { role: username.rolename, x: 42 }
License ## License
-------
BSD BSD
Author Information ## Author Information
------------------
An optional section for the role authors to include contact information, or a website (HTML is not allowed). An optional section for the role authors to include contact information, or a website (HTML is not allowed).

View File

@ -1,7 +1,6 @@
--- ---
# defaults file for ansible-renovate-role # defaults file for ansible-renovate-role
renovate_image_name: renovate/renovate renovate_image_name: renovate/renovate
renovate_image_tag: slim renovate_image_tag: slim
renovate_git_endpoint: "" renovate_git_endpoint: ""
@ -11,4 +10,4 @@ renovate_github_token: ""
renovate_log_level: info renovate_log_level: info
renovate_bot_username: renovate-bot renovate_bot_username: renovate-bot
renovate_webhook_secret: "" renovate_webhook_secret: ""
renovate_docker_user_group: "1000:1000" renovate_docker_user_group: "1000:1000"

View File

@ -8,4 +8,4 @@
- name: Reload cron - name: Reload cron
service: service:
name: cron name: cron
state: reloaded state: reloaded

View File

@ -39,7 +39,8 @@ galaxy_info:
# - 7 # - 7
# - 99.99 # - 99.99
galaxy_tags: [] galaxy_tags:
[]
# List tags for your role here, one per line. A tag is a keyword that describes # 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 # and categorizes the role. Users find roles by searching for tags. Be sure to
# remove the '[]' above, if you add tags to this list. # 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. # NOTE: A tag is limited to a single word comprised of alphanumeric characters.
# Maximum 20 tags per role. # Maximum 20 tags per role.
dependencies: [] dependencies:
[]
# List your role dependencies here, one per line. Be sure to remove the '[]' above, # List your role dependencies here, one per line. Be sure to remove the '[]' above,
# if you add dependencies to this list. # if you add dependencies to this list.

View File

@ -13,16 +13,16 @@
- name: Install requirements - name: Install requirements
pip: pip:
name: '{{ item.name }}' name: "{{ item.name }}"
executable: '{{ item.exec }}' executable: "{{ item.exec }}"
loop: '{{ __docker_requirements }}' loop: "{{ __docker_requirements }}"
- name: 'Pull renovate image' - name: "Pull renovate image"
docker_image: docker_image:
source: pull source: pull
name: '{{ renovate_image_name }}' name: "{{ renovate_image_name }}"
tag: '{{ renovate_image_tag }}' tag: "{{ renovate_image_tag }}"
state: 'present' state: "present"
force_source: true force_source: true
- name: Add config file - name: Add config file
@ -58,4 +58,4 @@
owner: root owner: root
group: root group: root
mode: u=rw,g=r,o=r mode: u=rw,g=r,o=r
notify: Restart webhook notify: Restart webhook

View File

@ -1,5 +1,5 @@
--- ---
# vars file for ansible-renovate-role # vars file for ansible-renovate-role
__docker_requirements: __docker_requirements:
- name: docker - name: docker
exec: pip3 exec: pip3