AmazonLinuxをansibleで構築中です。
vagratでテストした際には問題なかったのですが、
MySQLの構築時に下記のエラーが出てしまいました。
既存のmysql55-libs-5.5.56-1.17.amzn1.x86_64が問題のようですが、どのように対処すべきか調べてみてもわかりませんでした。
ご存知の方、いらっしゃいましたら教えていただけないでしょうか。
よろしくお願いいたします。
console
1エラー表示: 2TASK [mysqld/install : install dependencies] 3--省略-- 4file /usr/lib64/mysql/libmysqlclient.so.18 from install of mysql-community-libs-5.6.36-2.el6.x86_64 5conflicts with file from package mysql55-libs-5.5.56-1.17.amzn1.x86_64\n\nError Summary\n 6------------- 7\n\n", "rc": 1, "results": ["mysql55-libs-5.5.56-1.17.amzn1.x86_64 providing mysql-libs is already installed 8--省略--
yml
1--- 2yml 3- name: remove maria db 4 yum: name=mariadb-libs state=removed 5 become: yes 6 7- name: remove /var/lib/mysql 8 file: 9 path: /var/lib/mysql 10 state: absent 11 ignore_errors: yes 12 13- name: install dependencies 14 yum: name={{ item }} enablerepo=remi,epel,mysql56-community disablerepo=mysql57-community state=installed 15 with_items: 16 - cmake 17 - mysql-libs 18 - mysql-devel 19 - mysql-server 20 become: yes 21 22- name: start MySQL 23 service: name=mysqld state=started enabled=yes 24 become: yes
yml
1- name: Stat /etc/yum.repos.d/mysql.repo 2 stat: path=/etc/yum.repos.d/mysql.repo 3 become: yes 4 register: has_repo 5 6- name: Add repository 'mysql-repo' 7 yum: name=http://dev.mysql.com/get/mysql57-community-release-el6-7.noarch.rpm state=present 8 become: yes 9 when: has_repo.stat.exists == false
回答1件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。
2017/05/22 14:45 編集
2017/05/22 14:44
2017/05/22 14:47
2017/05/22 15:03