Put dev packages in separate task

This commit is contained in:
Anthony Rose 2023-03-18 18:29:03 +00:00
parent 6827b56b1c
commit 9310a652a0
3 changed files with 26 additions and 1 deletions

View file

@ -15,6 +15,7 @@
- import_tasks: apt-sources.yml
- import_tasks: packages-cli.yml
- import_tasks: packages-devel.yml
- import_tasks: packages-gui.yml
when: gui == true
- import_tasks: modules.yml

View file

@ -23,7 +23,6 @@
packages:
- apt-file
- apt-listchanges
- build-essential
- curl
- dc
- dnsutils

View file

@ -0,0 +1,25 @@
---
# Copyright 2021-2023 Anthony Perkins
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
- name: Install development packages
become: true
ansible.builtin.apt:
name: '{{ packages }}'
state: present
force_apt_get: yes
vars:
packages:
- build-essential
- gdb