File tree Expand file tree Collapse file tree 9 files changed +33
-21
lines changed Expand file tree Collapse file tree 9 files changed +33
-21
lines changed Original file line number Diff line number Diff line change 2323 python-version : ' 3.x'
2424
2525 - name : Install test dependencies
26- run : pip install ansible-lint[community,yamllint]
26+ run : |
27+ pip install ansible-lint
28+ ansible-galaxy install -r requirements.yml
2729
2830 - name : Lint code
2931 run : |
4345 matrix :
4446 include :
4547 - distro : debian8
46- ansible-version : ' <2.10'
4748 - distro : debian9
4849 - distro : debian10
49- - distro : ubuntu1604
50- ansible-version : ' >=2.9, <2.10'
5150 - distro : ubuntu1604
5251 ansible-version : ' >=2.10, <2.11'
5352 - distro : ubuntu1604
Original file line number Diff line number Diff line change 1- FROM ubuntu:16 .04
1+ FROM ubuntu:18 .04
22MAINTAINER Mischa ter Smitten <mtersmitten@oefenweb.nl>
33
4+ ENV LANG C.UTF-8
5+ ENV LC_ALL C.UTF-8
6+
47# python
58RUN apt-get update && \
6- DEBIAN_FRONTEND=noninteractive apt-get install -y python -minimal python -dev curl && \
9+ DEBIAN_FRONTEND=noninteractive apt-get install -y python3 -minimal python3 -dev curl && \
710 apt-get clean
8- RUN curl -sL https://bootstrap.pypa.io/pip/2.7 /get-pip.py | python -
11+ RUN curl -sL https://bootstrap.pypa.io/pip/3.6 /get-pip.py | python3 -
912RUN rm -rf $HOME/.cache
1013
1114# ansible
12- RUN DEBIAN_FRONTEND=noninteractive apt-get install -y gcc libffi-dev libssl-dev && \
15+ RUN DEBIAN_FRONTEND=noninteractive apt-get install -y python3-apt && \
1316 apt-get clean
14- RUN pip install ansible==2.9.15
17+ RUN pip3 install ansible==2.10.7
1518RUN rm -rf $HOME/.cache
1619
1720# provision
Original file line number Diff line number Diff line change 6868 mariadb_client_my_cnf_files :
6969 - dest : ' ~root/.my.cnf'
7070 owner : root
71- group : root
71+ ansible.builtin. group : root
7272 mode : ' 0600'
7373 login_host : localhost
7474 login_port : 3306
Original file line number Diff line number Diff line change 11# meta file
22---
33galaxy_info :
4- namespace : oefenweb
4+ author : oefenweb
55 role_name : mariadb_client
6- author : Mischa ter Smitten
76 company : Oefenweb.nl B.V.
87 description : Set up mariadb-server client in Debian-like systems
98 license : MIT
10- min_ansible_version : 2.9 .0
9+ min_ansible_version : 2.10 .0
1110 platforms :
1211 - name : Ubuntu
1312 versions :
Original file line number Diff line number Diff line change 1+ ---
2+ collections :
3+ - name : community.docker
4+ version : ' >=1.2.0,<2'
5+ - name : community.general
6+ version : ' >=2,<3'
Original file line number Diff line number Diff line change 1+ # requirements file
2+ ---
3+ collections : []
Original file line number Diff line number Diff line change 11# tasks file
22---
33- name : configure | copy certificate files
4- copy :
4+ ansible.builtin. copy :
55 src : " {{ item.value.src }}"
66 dest : " {{ item.value.dest }}"
77 owner : " {{ item.value.owner | default('root') }}"
1212 - mariadb-client-configure-copy-certificate-files
1313
1414- name : configure | update (user) configuration file(s)
15- template :
15+ ansible.builtin. template :
1616 src : root/.my.cnf.j2
1717 dest : " {{ item.dest | default('~' + item.owner + '/.my.cnf') }}"
1818 owner : " {{ item.owner }}"
Original file line number Diff line number Diff line change 11# tasks file
22---
3- - name : install | dependencies
4- apt :
3+ - name : install | dependencies # noqa args[module]
4+ ansible.builtin. apt :
55 name : " {{ mariadb_client_dependencies }}"
66 state : " {{ apt_install_state | default('latest') }}"
77 update_cache : true
88 cache_valid_time : " {{ apt_update_cache_valid_time | default(3600) }}"
99 tags :
1010 - mariadb-client-install-dependencies
1111
12- - name : install | additional
13- apt :
12+ - name : install | additional # noqa args[module]
13+ ansible.builtin. apt :
1414 name : " {{ mariadb_client_install }}"
1515 state : " {{ apt_install_state | default('latest') }}"
1616 tags :
Original file line number Diff line number Diff line change 11# tasks file
22---
3- - include : install.yml
3+ - name : install
4+ ansible.builtin.import_tasks : install.yml
45 tags :
56 - configuration
67 - mariadb-client
78 - mariadb-client-install
89
9- - include : configure.yml
10+ - name : configure
11+ ansible.builtin.import_tasks : configure.yml
1012 tags :
1113 - configuration
1214 - mariadb-client
You can’t perform that action at this time.
0 commit comments