-
Notifications
You must be signed in to change notification settings - Fork 0
Automating applications #6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Changes from 2 commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
workflow "On push" { | ||
on = "push" | ||
resolves = ["ansible/ansible-lint-action@master"] | ||
} | ||
|
||
action "ansible/ansible-lint-action@master" { | ||
uses = "ansible/ansible-lint-action@master" | ||
env = { | ||
ACTION_PLAYBOOK_NAME = "ansible/install-apps.yml" | ||
} | ||
} | ||
|
||
workflow "On PR" { | ||
on = "pull_request" | ||
resolves = ["ansible/ansible-lint-action@master"] | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
#!/bin/bash | ||
curl -L https://sw.kovidgoyal.net/kitty/installer.sh | sh /dev/stdin | ||
echo 'Update complete.' | ||
|
||
|
||
|
Original file line number | Diff line number | Diff line change | ||||
---|---|---|---|---|---|---|
@@ -0,0 +1,37 @@ | ||||||
--- | ||||||
- name: Install OS-level apps | ||||||
hosts: all | ||||||
become: yes | ||||||
tasks: | ||||||
- name: Add Google Chrome key | ||||||
apt_key: | ||||||
url: https://dl-ssl.google.com/linux/linux_signing_key.pub | ||||||
state: present | ||||||
- name: Add Google Chrome directory | ||||||
apt_repository: | ||||||
repo: "{{ item }}" | ||||||
state: present | ||||||
loop: | ||||||
- deb [arch=amd64] https://dl.google.com/linux/chrome/deb/ stable main | ||||||
- deb http://dl.google.com/linux/chrome/deb/ stable main | ||||||
- name: Add Microsoft key | ||||||
apt_key: | ||||||
url: https://packages.microsoft.com/keys/microsoft.asc | ||||||
state: present | ||||||
- name: Add vscode directory | ||||||
apt_repository: | ||||||
repo: "deb [arch=amd64] https://packages.microsoft.com/repos/vscode stable main" | ||||||
state: present | ||||||
- name: Install vscode depts | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||
apt: | ||||||
update_cache: yes | ||||||
name: | ||||||
- software-properties-common | ||||||
- apt-transport-https | ||||||
- name: Install apps | ||||||
apt: | ||||||
update_cache: yes | ||||||
name: | ||||||
- google-chrome-stable | ||||||
- git | ||||||
- code |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
[dev-machines] | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Plz add another inventory file with the same group and localhost and connection local set. |
||
|
||
localhost ansible_connection=local | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. So one inventory file should have the host with connection local and the other inventory should point to the VM over SSH. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Okay, but I need an example,pls |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should be in the playbook instead