-
-
Notifications
You must be signed in to change notification settings - Fork 73
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add force flag to always run tailscale up if enabled (#89)
* Add force flag to always run tailscale up if enabled * Update README with example usage * Update pre-commit and fix new molecule issues * Update molecule to match checks happening in pre-commit hook * hello.ipn.dev -> hello-ipn-dev * Remove needlessly committed directory
- Loading branch information
Showing
15 changed files
with
252 additions
and
143 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 |
---|---|---|
@@ -0,0 +1,8 @@ | ||
exclude_paths: | ||
- .cache/ | ||
- .github/ | ||
- .idea/ | ||
- .vscode/ | ||
|
||
skip_list: | ||
- line-length |
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,4 @@ | ||
.idea | ||
.vscode | ||
|
||
.cache | ||
.*vault-pass |
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,27 +1,25 @@ | ||
repos: | ||
- repo: https://github.com/pre-commit/pre-commit-hooks | ||
rev: v3.4.0 | ||
hooks: | ||
- id: check-yaml | ||
# https://github.com/pre-commit/pre-commit-hooks/issues/273 | ||
# Not the best option but it doesn't seem to accept an 'ignore' option | ||
args: [--unsafe] | ||
- id: end-of-file-fixer | ||
- id: trailing-whitespace | ||
- id: check-executables-have-shebangs | ||
- id: check-merge-conflict | ||
- id: mixed-line-ending | ||
- id: sort-simple-yaml | ||
- repo: https://github.com/pre-commit/pre-commit-hooks | ||
rev: v3.4.0 | ||
hooks: | ||
- id: check-yaml | ||
# https://github.com/pre-commit/pre-commit-hooks/issues/273 | ||
# Not the best option but it doesn't seem to accept an 'ignore' option | ||
args: [--unsafe] | ||
- id: end-of-file-fixer | ||
- id: trailing-whitespace | ||
- id: check-executables-have-shebangs | ||
- id: check-merge-conflict | ||
- id: mixed-line-ending | ||
- id: sort-simple-yaml | ||
|
||
- repo: https://github.com/jumanjihouse/pre-commit-hooks | ||
rev: 2.1.4 | ||
hooks: | ||
- id: shellcheck | ||
# Temporary until https://github.com/jumanjihouse/pre-commit-hooks/pull/81 is merged | ||
additional_dependencies: [] | ||
- repo: https://github.com/jumanjihouse/pre-commit-hooks | ||
rev: 2.1.5 | ||
hooks: | ||
- id: shellcheck | ||
|
||
- repo: https://github.com/ansible/ansible-lint | ||
rev: v4.3.7 | ||
hooks: | ||
- id: ansible-lint | ||
files: \.(yaml|yml)$ | ||
- repo: https://github.com/ansible/ansible-lint | ||
rev: v5.0.6 | ||
hooks: | ||
- id: ansible-lint | ||
files: \.(yaml|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
Large diffs are not rendered by default.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
--- | ||
|
||
- name: Arch | Install Tailscale | ||
become: yes | ||
become: true | ||
pacman: | ||
name: '{{ tailscale_package }}' | ||
update_cache: yes | ||
update_cache: true | ||
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,19 @@ | ||
--- | ||
- name: CentOS | Yum Dependencies | ||
become: yes | ||
become: true | ||
yum: | ||
name: "{{ yum_dependencies }}" | ||
state: present | ||
|
||
- name: CentOS | Add Yum Repo | ||
become: yes | ||
become: true | ||
command: yum-config-manager --add-repo {{ yum_repos[ansible_distribution] }} | ||
args: | ||
creates: /etc/yum.repos.d/tailscale.repo | ||
|
||
- name: CentOS | Install Tailscale | ||
become: yes | ||
become: true | ||
yum: | ||
name: "{{ tailscale_package }}" | ||
disable_gpg_check: yes | ||
disable_gpg_check: true | ||
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,36 +1,36 @@ | ||
--- | ||
- name: Debian | Apt Update | ||
become: yes | ||
become: true | ||
apt: | ||
update_cache: yes | ||
update_cache: true | ||
|
||
- name: Debian | Apt Dependencies | ||
become: yes | ||
become: true | ||
apt: | ||
name: "{{ apt_dependencies }}" | ||
state: present | ||
|
||
- name: Debian | Legacy Apt Dependencies | ||
become: yes | ||
become: true | ||
apt: | ||
name: "{{ legacy_apt_dependencies }}" | ||
when: ansible_distribution_major_version | int < 20 | ||
|
||
- name: Debian | Tailscale Signing Key | ||
become: yes | ||
become: true | ||
apt_key: | ||
url: "{{ apt_signkey }}" | ||
state: present | ||
|
||
- name: Debian | Add Tailscale Deb | ||
become: yes | ||
become: true | ||
apt_repository: | ||
repo: "{{ apt_deb }}" | ||
state: present | ||
|
||
- name: Debian | Install Tailscale | ||
become: yes | ||
become: true | ||
apt: | ||
name: "{{ tailscale_package }}" | ||
state: present | ||
update_cache: yes | ||
update_cache: true |
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