문서의 선택한 두 판 사이의 차이를 보여줍니다.
| 양쪽 이전 판 이전 판 다음 판 | 이전 판 | ||
|
linux:apt [2025/05/14 13:47] kwon37xi [apt-key] |
linux:apt [2025/05/14 16:57] (현재) kwon37xi [ansible 의 경우] |
||
|---|---|---|---|
| 줄 119: | 줄 119: | ||
| man apt-key 8 | man apt-key 8 | ||
| </ | </ | ||
| - | * '' | + | * '' |
| * [[devops: | * [[devops: | ||
| 줄 136: | 줄 136: | ||
| ==== ansible 의 경우 ==== | ==== ansible 의 경우 ==== | ||
| - | * [[https:// | + | * [[https:// |
| + | * Repository 추가와 key 추가를 함께 동시에 한다. | ||
| * [[https:// | * [[https:// | ||
| <code yaml> | <code yaml> | ||
| - | tasks: | + | - name: Add repo using key from URL |
| - | | + | deb822_repository: |
| - | when: ansible_os_family == ' | + | name: example |
| - | become: true | + | types: deb |
| - | block: | + | uris: https://download.example.com/linux/ubuntu |
| - | - name: Add VSCode APT repository | + | |
| - | ansible.builtin.deb822_repository: | + | components: stable |
| - | name: vscode | + | architectures: |
| - | types: | + | |
| - | uris: "https://packages.microsoft.com/repos/code" | + | |
| - | signed_by: | + | |
| - | suites: [stable] | + | |
| - | components: [main] | + | |
| - | state: present | + | |
| - | enabled: yes | + | |
| </ | </ | ||
| + | * https:// | ||
| ===== CheatSheet ===== | ===== CheatSheet ===== | ||
| * [[http:// | * [[http:// | ||