File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ ---
2+ - name : Install wget if not present
3+ apt :
4+ name : wget
5+ state : present
6+ when : ansible_facts.packages.wget is not defined
7+
8+ - name : Create /etc/apt/keyrings directory
9+ file :
10+ path : /etc/apt/keyrings
11+ state : directory
12+ mode : ' 0755'
13+
14+ - name : Download GitHub CLI archive keyring
15+ get_url :
16+ url : https://cli.github.com/packages/githubcli-archive-keyring.gpg
17+ dest : /tmp/githubcli-archive-keyring.gpg
18+
19+ - name : Copy GitHub CLI archive keyring to /etc/apt/keyrings
20+ copy :
21+ src : /tmp/githubcli-archive-keyring.gpg
22+ dest : /etc/apt/keyrings/githubcli-archive-keyring.gpg
23+ mode : ' 0644'
24+
25+ - name : Add GitHub CLI repository
26+ apt_repository :
27+ repo : " deb [arch={{ ansible_architecture }} signed-by=/etc/apt/keyrings/githubcli-archive-keyring.gpg] https://cli.github.com/packages stable main"
28+ state : present
29+
30+ - name : Update apt cache
31+ apt :
32+ update_cache : yes
33+
34+ - name : Install GitHub CLI
35+ apt :
36+ name : gh
37+ state : present
Original file line number Diff line number Diff line change 263263 - terraform
264264 tags :
265265 - always
266+
267+ - name : Include gh_install.yaml tasks
268+ ansible.builtin.include_tasks : gh_install.yaml
269+ args :
270+ apply :
271+ tags :
272+ - gh-install
273+ tags :
274+ - always
266275
267276 handlers :
268277 - name : Set correct permissions for sudoers file
You can’t perform that action at this time.
0 commit comments