-
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
37 changed files
with
1,016 additions
and
60 deletions.
There are no files selected for viewing
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,2 +1,3 @@ | ||
*.retry | ||
.vagrant | ||
playbooks/dnf5 |
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 |
---|---|---|
|
@@ -21,3 +21,4 @@ | |
- apps/terraform | ||
- apps/terragrunt | ||
- apps/terraform-docs | ||
- apps/azure-functions-core-tools |
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
13 changes: 13 additions & 0 deletions
13
roles/apps/azure-functions-core-tools/tasks/get_latest_version.yml
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 |
---|---|---|
@@ -0,0 +1,13 @@ | ||
--- | ||
- name: Get latest version azure_functions_core_tools | ||
shell: curl -Is https://github.com/Azure/azure-functions-core-tools/releases/latest | grep -i 'location:' | rev | cut -d'/' -f1 | rev | ||
register: version | ||
changed_when: false | ||
|
||
- name: "Latest version of azure_functions_core_tools:" | ||
debug: | ||
var: version.stdout | ||
|
||
- name: "Set fact with latest version of azure_functions_core_tools" | ||
set_fact: | ||
azure_functions_core_tools_version: "{{ version.stdout }}" |
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 |
---|---|---|
@@ -0,0 +1,29 @@ | ||
--- | ||
- name: Directory for azure_functions_core_tools | ||
file: | ||
path: "{{ item }}" | ||
state: directory | ||
loop: | ||
- "/tmp/azure_functions_core_tools" | ||
- "/opt/azure_functions_core_tools" | ||
|
||
- name: Download azure_functions_core_tools binary | ||
get_url: | ||
url: "https://github.com/Azure/azure-functions-core-tools/releases/download/{{ azure_functions_core_tools_version }}/Azure.Functions.Cli.linux-x64.{{ azure_functions_core_tools_version }}.zip" | ||
dest: /tmp/azure_functions_core_tools/azure_functions_core_tools.zip | ||
|
||
- name: Unarchive a file that is already on the remote machine | ||
unarchive: | ||
src: /tmp/azure_functions_core_tools/azure_functions_core_tools.zip | ||
dest: /opt/azure_functions_core_tools | ||
remote_src: yes | ||
|
||
- name: Set executable permissions | ||
file: | ||
path: "/opt/azure_functions_core_tools/{{ item }}" | ||
mode: 0755 | ||
owner: root | ||
group: root | ||
loop: | ||
- func | ||
- gozip |
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 |
---|---|---|
@@ -0,0 +1,3 @@ | ||
--- | ||
- include_tasks: setup.yml | ||
when: ansible_architecture == "x86_64" |
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 |
---|---|---|
@@ -0,0 +1,18 @@ | ||
--- | ||
- name: Get installed version of azure_functions_core_tools | ||
become: true | ||
become_user: "{{ user_name }}" | ||
shell: /opt/azure_functions_core_tools/func --version | ||
register: installed_azure_functions_core_tools_version | ||
changed_when: false | ||
ignore_errors: true | ||
|
||
- name: "Installed version of azure_functions_core_tools:" | ||
debug: | ||
var: installed_azure_functions_core_tools_version.stdout | ||
|
||
- include_tasks: get_latest_version.yml | ||
when: azure_functions_core_tools_version is not defined | ||
|
||
- include_tasks: install.yml | ||
when: installed_azure_functions_core_tools_version.stdout != azure_functions_core_tools_version |
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 |
---|---|---|
|
@@ -4,5 +4,5 @@ | |
|
||
- name: netcore sdk | ||
package: | ||
name: "dotnet-sdk-6.0" | ||
name: "dotnet-sdk-8.0" | ||
state: present |
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,4 +1,3 @@ | ||
--- | ||
# Vagrant is not available for arm64 linux. | ||
- include_tasks: install.yml | ||
# when: ansible_architecture == "x86_64" |
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 |
---|---|---|
@@ -0,0 +1,23 @@ | ||
--- | ||
- name: Check dnf symlink target | ||
stat: | ||
path: /usr/bin/dnf | ||
register: dnf_symlink | ||
|
||
# - debug: | ||
# var: dnf_symlink | ||
|
||
- name: Install dnf5 | ||
dnf: | ||
name: ["dnf5", "python3-libdnf5"] | ||
state: present | ||
# when: dnf_symlink.stat.lnk_target == "dnf-3" | ||
|
||
- name: Create a symbolic link | ||
ansible.builtin.file: | ||
src: /usr/bin/dnf | ||
dest: dnf5 | ||
owner: root | ||
group: root | ||
state: link | ||
# when: dnf_symlink.stat.lnk_target == "dnf-3" |
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
Oops, something went wrong.