-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'release-3.0.0' into 1.1.0
- Loading branch information
Showing
62 changed files
with
327 additions
and
237 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,37 +1,38 @@ | ||
--- | ||
- hosts: localhost | ||
- nname: Deploy to Ansible Galaxy | ||
hosts: localhost | ||
connection: local | ||
gather_facts: false | ||
vars: | ||
# This should be set via the command line at runtime. | ||
tag: "{{ github_tag.split('/')[-1] }}" | ||
pre_tasks: | ||
- name: Ensure the ANSIBLE_GALAXY_TOKEN environment variable is set. | ||
fail: | ||
ansible.builtin.fail: | ||
msg: ANSIBLE_GALAXY_TOKEN is not set. | ||
when: "lookup('env','ANSIBLE_GALAXY_TOKEN') | length == 0" | ||
when: lookup('env','ANSIBLE_GALAXY_TOKEN') | length == 0 | ||
- name: Ensure the ~/.ansible directory exists. | ||
file: | ||
ansible.builtin.file: | ||
path: ~/.ansible | ||
state: directory | ||
- name: Write the Galaxy token to ~/.ansible/galaxy_token | ||
copy: | ||
ansible.builtin.copy: | ||
content: | | ||
token: {{ lookup('env','ANSIBLE_GALAXY_TOKEN') }} | ||
token: {{ lookup('env', 'ANSIBLE_GALAXY_TOKEN') }} | ||
dest: ~/.ansible/galaxy_token | ||
tasks: | ||
- name: Template out the galaxy.yml file. | ||
template: | ||
ansible.builtin.template: | ||
src: templates/galaxy.yml.j2 | ||
dest: ../galaxy.yml | ||
register: galaxy_yml | ||
- name: Build the collection. # noqa 503 | ||
command: > | ||
ansible.builtin.command: > | ||
ansible-galaxy collection build | ||
chdir=../ | ||
when: galaxy_yml.changed | ||
- name: Publish the collection. # noqa 503 | ||
command: > | ||
ansible.builtin.command: > | ||
ansible-galaxy collection publish ./ericsysmin-system-{{ tag }}.tar.gz | ||
chdir=../ | ||
when: galaxy_yml.changed |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
--- | ||
### REQUIRED | ||
|
||
# The namespace of the collection. This can be a company/brand/organization or product namespace under which all | ||
|
@@ -17,8 +18,7 @@ readme: README.md | |
# A list of the collection's content authors. Can be just the name or in the format 'Full Name <email> (url) | ||
# @nicks:irc/im.site#channel' | ||
authors: | ||
- Eric Anderson <[email protected]> (https://ericsysmin.com) | ||
|
||
- Eric Anderson <[email protected]> (https://ericsysmin.com) | ||
|
||
### OPTIONAL but strongly recommended | ||
|
||
|
@@ -32,7 +32,7 @@ description: Collection of System Administration Roles | |
|
||
# The path to the license file for the collection. This path is relative to the root of the collection. This key is | ||
# mutually exclusive with 'license' | ||
license_file: 'LICENSE' | ||
license_file: LICENSE | ||
|
||
# A list of tags you want to associate with the collection for indexing/searching. A tag name has the same character | ||
# requirements as 'namespace' and 'name' | ||
|
@@ -51,7 +51,8 @@ tags: | |
# collection label 'namespace.name'. The value is a version range | ||
# L(specifiers,https://python-semanticversion.readthedocs.io/en/latest/#requirement-specification). Multiple version | ||
# range specifiers can be set and are separated by ',' | ||
dependencies: {} | ||
dependencies: | ||
"community.general": "*" | ||
|
||
# The URL of the originating SCM repository | ||
repository: https://github.com/ericsysmin/ansible-collection-system | ||
|
Oops, something went wrong.