我可以将多个剧本合并为一个剧本吗?

时间:2019-05-28 18:56:49

标签: ansible

如何将Debian 6/7/8剧本合并为一本主剧本?

Debian-6-certificates.yaml

- name: Copy the proxy CA to /etc/ssl/certs/
  copy:
    src: library/{{ item }}.crt
    dest: /usr/local/share/ca-certificates/{{ item }}.crt
  with_items:
  - "{{ proxy_ca_certificate }}"
- name: Update system CA certificates
  command: update-ca-certificates --fresh

...

Debian-7-certificates.yaml

- name: Copy the proxy CA to /etc/ssl/certs/
  copy:
    src: library/{{ item }}.crt
    dest: /usr/local/share/ca-certificates/{{ item }}.crt
  with_items:
  - "{{ proxy_ca_certificate }}"
- name: Update system CA certificates
  command: update-ca-certificates --fresh

...

Debian-8-certificates.yaml

- name: Copy the proxy CA to /etc/ssl/certs/
  copy:
    src: library/{{ item }}.crt
    dest: /usr/local/share/ca-certificates/{{ item }}.crt
  with_items:
  - "{{ proxy_ca_certificate }}"
- name: Update system CA certificates
  command: update-ca-certificates --fresh

...

0 个答案:

没有答案