смог сделать?
через ансибл модули?
- name: Jenkins hosts: become: yes tasks: - name: Add key, repo block: - name: somerepo |no apt key ansible.builtin.get_url: url: https://pkg.jenkins.io/debian-stable/jenkins.io.key dest: /etc/apt/trusted.gpg.d/jenkins.io.key - name: somerepo | apt source ansible.builtin.apt_repository: repo: "deb [arch=amd64 signed-by=/etc/apt/trusted.gpg.d/jenkins.io.key] http://pkg.jenkins.io/debian-stable binary/" state: present
TASK [jenkins : Import jenkins key from url] ********************************************************************************************************************************************* fatal: [finalmashine01.devops.rebrain.srwx.net]: FAILED! => {"changed": false, "msg": "Unsupported parameters for (ansible.builtin.apt_key) module: dest. Supported parameters include: keyring, url, id, file, data, key, keyserver, state, validate_certs."}
get_url у меня используется, а не apt_key
да, уже сонный, туплю( сейчас
TASK [jenkins : somerepo | apt source] *************************************************************************************************************************************************** fatal: [finalmashine01.devops.rebrain.srwx.net]: FAILED! => {"changed": false, "msg": "Failed to update apt cache: E:The repository 'http://pkg.jenkins.io/debian-stable binary/ Release' does not have a Release file."}
Обсуждают сегодня